Home » Search

About getResultList

31-40 of 200Refresh
Forum
2

Calendar in Criteria Querys

(e.get("c1"), e.get("c2")));         List results = em.createQuery(query1).getResultList ... ));         results = em.createQuery(query)             .setParameter(p, Calendar.getInstance()).getResultList ... .getResultList(JpaQuery.java:666) at TestCase.main(TestCase.java:35) You are right. The parameter
Forum
2

EntityManagerFactory Fails To Swtich Over To Slave When Master Is Unavailable

("SELECT p FROM Point p",     Point.class);   List results = query.getResultList();   int ... > results = query.getResultList();   int count = 0;   for (Point p : results) {    System.out.println(p ... Connection is closed (error 526) at com.objectdb.jpa.JpaQuery.getResultList(JpaQuery.java:695
Forum
2

Exception when querying Map property with @embedded & Enhancer enabled

.class).getResultList()) {    System.out.println(myEntity ... ).getResultList()) {    System.out.println(myEntity2);   } } @Entity public static class ... enhanced method (error 362) at com.objectdb.jpa.JpaQuery.getResultList(JpaQuery.java:725
Forum
2

How to convert a boolean to an int in the query?

);         resultList = query.getResultList(); Query  SELECT approveEmail FROM Person ORDER BY (int)approveEmail ... = query.getResultList(); works fine.   But criteria query CriteriaBuilder cb = em ... ); resultList = query.getResultList(); does not work Just tried a similar query on the world
Forum
2

JBOSS AS7 7.1.1 - Entity not persisted and createNamedQuery fire exception

", Guest.class);   final List guests =  query.getResultList();   System.out.println( "persisted ... .createQuery( "SELECT g FROM Guest g ORDER BY g.id", Guest.class);         return query.getResultList ... .findAll", Guest.class );   final List guests =  query.getResultList();   return guests
Forum
2

JPQL keyword in entity - what to do?

.getResultList(JpaQuery.java:571) ~[objectdb.jar:na] There is no problem with this query when I ... .getResultList(); ResultData class looks like this: public class ResultData {     public String ... .getResultList(JpaQuery.java:573) ~[objectdb.jar:na] It looks like ODB is trying to use setter/getter
Issue
2

JPQL support for mapped by (inverse) collections

");         //System.out.println(query.getResultList().size());         // SELECT a FROM A a WHERE a.list IS NOT ... ).getResultList();         System.out.println(list1);         // SELECT a FROM A a WHERE a.list ... ", A.class)             .setParameter("list", new ArrayList(list1)).getResultList
Forum
2

locks on pure query activities

:153) at com.objectdb.jpa.JpaQuery.getResultList(JpaQuery.java:719) - locked ... ) at com.objectdb.o.QRR.f(QRR.java:153) at com.objectdb.jpa.JpaQuery.getResultList(JpaQuery.java ... .getResultList(JpaQuery.java:719) - locked <0x00000007a49ae6a0> (a com.objectdb.jdo.PMImpl
Issue
2

NullPointer on query

.getResultList(); Stack trace follows: rbccm.felix.framework.ApplicationException: Error taking message ... .objectdb.jpa.JpaQuery.getResultList(JpaQuery.java:695) at rbccm.felix.objectdb.messaging ... .objectdb.jpa.JpaQuery.getResultList(JpaQuery.java:686) ... 6 more The code usually works fine so I
Forum
2

Strange behaviour with ORDER BY and IN

l from Location l order by l.id desc", Location.class)             .getResultList().forEach(l ... ", locations.stream().map(l -> l.getId()).collect(Collectors.toList()))             .getResultList ... ()))             .getResultList().forEach(l -> System.out.println("Location: " + l