About getSingleResult

21-30 of 91Refresh
Forum
3

Performance in large transactions

(); transaction.begin (); // the "problem" Query Entity2 x = //query (getSingleResult): "select e ... <100; i ++) {     // the "problem" Query     Entity2 x = //query (getSingleResult): "select e from ... m",      MyEntity.class);    myEntity = q.getSingleResult();    MyEntityElement
Forum
3

com.objectdb.o.NLV cannot be cast to com.objectdb.o.CMV

internal exception           at com.arunta.base.db.RecordingMetaDataDAO.getSingleResult(RecordingMetaDataDAO.java:958)                     at com.arunta.app.services.RecordingService.getSingleResult ... )                                                          at com.objectdb.jpa.JpaQuery.getSingleResult(JpaQuery.java:723
Forum
3

Criteria Query results in a NoResultException instead of returning object

(criteria).getSingleResult(); which evaluates to the query: SELECT $1 FROM IdentityObject $1 ... .java:1444) at com.objectdb.jpa.JpaQuery.getSingleResult(JpaQuery.java:620) at org.jboss.seam ... .getName()) .getSingleResult(); queryStr evaluates to: select i from IdentityObject
Forum
3

Join performance in Objectdb

AND a.cId = c.id", Long.class);         result = q1.getSingleResult();         elapsedTime ... = q2.getSingleResult();         elapsedTime = System.currentTimeMillis() - ms ... );         result = q1.getSingleResult();         elapsedTime = System.currentTimeMillis() - ms
Forum
3

New to Product & Having An Issue

", this.departmentId); Department d = q.getSingleResult(); assertNotNull(d ... .getObjectId()); Department d = q.getSingleResult(); assertNotNull(d ... ' (error 761) (position 38) at com.objectdb.jpa.JpaQuery.getSingleResult(JpaQuery.java:592
Forum
3

Possible issue with timestamps

.class);         Long cdiCount = query.getSingleResult();         assertEquals(22, cdiCount.intValue ... );         cdiCount = query.getSingleResult();         assertEquals(3, cdiCount.intValue());                 query ... );         cdiCount = query.getSingleResult();         assertEquals(3, cdiCount.intValue
Forum
2

EntityManagerFactory Fails To Swtich Over To Slave When Master Is Unavailable

("SELECT COUNT(p) FROM Point p");   System.out.println("Total Points: " + q1.getSingleResult ... ");   System.out.println("Average X: " + q2.getSingleResult()); } }   package tutorial; import java ... : " + q1.getSingleResult());   // Find the average X value:   Query q2 = em.createQuery("SELECT
Forum
2

Error using query with MAX() function

= (Date)tq.getSingleResult(); em.getTransaction().commit(); System.out.println("MaxDate ... .objectdb.jpa.JpaQuery.getSingleResult(JpaQuery.java:607) at com.ibm.check.cmvc2git.Test.doit(Test ... ) at com.objectdb.o.QRR.b(QRR.java:139) at com.objectdb.jpa.JpaQuery.getSingleResult(JpaQuery.java
Forum
2

Mismatch client-server protocol prefix

= null;         result = (TrackerUser) q.getSingleResult();         em.detach(result);         return ... );         Object result = null;         try {             result = q.getSingleResult();         } catch ... at the getSingleResult line: java.lang.ClassCastException: at.co.pjm.tracker.persistence.TrackerUser
Forum
2

JPA - ExceptionInInitializerError when creating EntityManager

", "SMTP").getSingleResult(); port = emailSettings.setParameter("name", "Port").getSingleResult(); from = emailSettings.setParameter("name", "EMAILFROM").getSingleResult ... ).getSingleResult();             if (minutes != null && minutes instanceof String)                 SHIFT