About getResultList

61-70 of 200Refresh
Issue
1

Strange Error with Criteria API and Sorting

"))));   query.select(root).distinct(true);   List result = em.createQuery(query).getResultList ... ' for distinct results (error 745) (position 70) at com.objectdb.jpa.JpaQuery.getResultList(JpaQuery ... .java:242) at com.objectdb.o.QRR.b(QRR.java:153) at com.objectdb.jpa.JpaQuery.getResultList
Forum
1

Updating Entities

, Employee.class).getResultList(); } The problem I'm facing is when I use handleModify() from ... = " + newRate + " WHERE rate = " + oldRate, Paygrade.class); query.getResultList().forEach(p ... ("--------"); query.getResultList().forEach(p -> System.out.println(p.getRate())); } and got these results
Forum
1

Why the internal error was thrown?

.java:247) at com.objectdb.o.QRR.f(QRR.java:153) at com.objectdb.jpa.JpaQuery.getResultList ... .getResultList(JpaQuery.java:719) at com.btc.ep.base.dal.internal.services.PersistenceUtilityServiceImpl ... ("objectdb.result-fetch", "LAZY");     return q.getResultList(); } Please try build 2.6.8_05 that may fix this exception. btc_es
Forum
1

Wrong data stored in time only fields

  WHERE  (r.startTime < {t '00:00:00'})");         List resultList = q.getResultList ... .getResultList();         Iterator itr = resultList.iterator();         while (itr.hasNext ... .getResultList();         itr = resultList.iterator();         while (itr.hasNext()) {             dt
Forum
1

Object as parameter results in exception

)));   TypedQuery q = getEntityManager().createQuery(c);   List resultList = q.getResultList ... ().createQuery(c);   List resultList = q.getResultList();   if(resultList.size() > 0){    return ... );     List resultList = q.getResultList();   if(resultList.size() > 0){    return resultList
Forum
1

"Unexpected query expression" using CriteriaQuery FetchParent Interface

relationship   criteriaQuery.select(root);   System.out.println(em.createQuery(criteriaQuery).getResultList ... ) at com.objectdb.jpa.JpaQuery.getResultList(JpaQuery.java:725) Thank you for this bug report
Forum
1

@OneToMany(fetch = FetchType.LAZY) list is always null

= entityManager.createQuery("SELECT p FROM Parent p"); parents = query.getResultList ... = entityManager.createQuery("SELECT p FROM Parent p"); parents = query.getResultList
Forum
1

Cannot sort descending, when ordering by caluculated float in a method

= query.getResultList();         System.out.println(resultList);         em.close();         emf ... "); List resultList = query.getResultList(); System.out.println(resultList
Forum
1

ClassCastException of same object type

().createQuery("select e from XCCompetitorCount e", XCCompetitorCount.class).getResultList ... ().createQuery("select e from XCCompetitorCount e", XCCompetitorCount.class).getResultList
Issue
1

com.objectdb.o.InternalException

No idea what happened.  A simple getResultList() opearation. DB table affected size is ~ 26000 records, physical DB file size is ~ 8.5MB Thanks for any help ! Leon log file ... .java:247) at com.objectdb.o.QRR.f(QRR.java:153) at com.objectdb.jpa.JpaQuery.getResultList(JpaQuery