Home » Search

About getSingleResult

21-30 of 84Refresh
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
3

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
3

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
3

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
3

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
Forum
2

how to query by properties of onetomany relations? (Error 990)

(QRR.java:220) at com.objectdb.o.QRR.b(QRR.java:143) at com.objectdb.jpa.JpaQuery.getSingleResult ... ");         System.out.println("Count: " + query.getSingleResult());         em.close ... .jpa.JpaQuery.getSingleResult(JpaQuery.java:620) The query hint is set in the code
Issue
2

Issue with cascade delete & add/remove

Contact")             .setMaxResults(1).getSingleResult();         em.getTransaction().begin ... a WHERE street = '1'")             .getSingleResult()).intValue();         int Address_2_Count ... '")             .getSingleResult()).intValue();         System.out.println("Address_1 Count
Forum
2

Online backup problem

= backupQuery.getSingleResult();    backupThread.join();   } catch (Exception e) {   e.printStackTrace ... = em.createQuery("objectdb backup");   query.getSingleResult();     em.close();   emf.close ... ");     query.getSingleResult(); or the new build (2.2.7_07) that should fix it. Thank
Issue
2

Threaded Test - Failed to commit transaction: Unexpected internal exception

:220) at com.objectdb.o.QRR.b(QRR.java:143) at com.objectdb.jpa.JpaQuery.getSingleResult(JpaQuery ... (                     LockModeType.PESSIMISTIC_WRITE).getSingleResult();                 em.remove(p ... results for queries that were run by getSingleResult. The result size was evaluated to fixed size