About getResultList

31-40 of 200Refresh
Forum
2

Missing Data on Retrieval (0, null values)

> resultList = em.createQuery("SELECT q  FROM "+tableName+" "+n).getResultList();   exportToCSV ... : List resultList1 = em.createQuery("SELECT p  FROM Person p").getResultList();     -> resultlist1   OK List resultList2 = em.createQuery("SELECT d  FROM Document d" ).getResultList
Forum
2

java.lang.NullPointerException when using ORDER BY

exception           at com.arunta.base.db.RecordingMetaDataDAO.getResultList(RecordingMetaDataDAO.java:925)                       at com.arunta.app.services.RecordingService.getResultList ... )                                                          at com.objectdb.jpa.JpaQuery.getResultList(JpaQuery.java:695
Issue
2

Query fails with failed to read

. It always happens when using a getResultList() on a query. there are not any logs in the log (we are using ... { List objectNodes = queryContainer.getResultList ... ) at com.objectdb.o.QRR.i(QRR.java:155) at com.objectdb.jpa.JpaQuery.getResultList(JpaQuery.java:721
Forum
2

Connection is closed (error 526)

is closed (error 526) at com.objectdb.jpa.JpaQuery.getResultList(JpaQuery.java:633) at fpg.Nodes.getSons ... .java:144) at com.objectdb.jpa.JpaQuery.getResultList(JpaQuery.java:627) ... 3 more Caused by ... .java:266) at com.objectdb.o.QRR.b(QRR.java:168) at com.objectdb.jpa.JpaQuery.getResultList
Forum
2

Problem with distinct select, order by and equivalent alias/attribute path

: ");         System.out.println(q1);                 em.createQuery(q1, Location.class).getResultList ... , Location.class).getResultList();                 String q2 = "select distinct s.location ... (q2);                 em.createQuery(q2, Location.class).getResultList();                 em
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