About getSingleResult

31-40 of 91Refresh
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
Forum
2

Visibility of changes in Transaction is not visible to a JPA QL Query

);   try {    return q.getSingleResult();   } catch (javax.persistence.NoResultException ex ... .class);   try {    return q.getSingleResult();   } catch (javax.persistence.NoResultException ex ... .setParameter("cachedKey", Integer.toString(which));   return q.getSingleResult
Forum
2

zip file or JAR manifest missing

(error 301) at com.objectdb.jpa.JpaQuery.getSingleResult(JpaQuery.java:620) at src.run.txt2db ... .g(QRR.java:220) at com.objectdb.o.QRR.b(QRR.java:143) at com.objectdb.jpa.JpaQuery.getSingleResult ... .setParameter(2, sName); ItemList item = null; try { item = (ItemList)q2.getSingleResult
Forum
2

ArrayIndexOutOfBoundsException

.o.QRR.b(QRR.java:208)         at com.objectdb.jpa.JpaQuery.getSingleResult(JpaQuery.java:696 ... .java:175)         at com.objectdb.jpa.JpaQuery.getSingleResult(JpaQuery.java:696)   I'm afraid I
Forum
2

Bulk Delete and Update - best practice?

.class); long rows = q.getSingleResult(); System.out.println(String.format("Found %s rows", rows ... .getSingleResult(); System.out.println(String.format("Found %s rows", rows)); em.close(); emf
Forum
2

Cast exception?

).getSingleResult(); Where the query is a NamedQuery store in Player class file: @NamedQuery(name="Player ... .getSingleResult(); Without any error. So the only error occurring is the casting, which doesn't
Forum
2

Date field Index is corrupted due to time change

");         em.getTransaction().begin();         Long r = (Long) q.getSingleResult();         em ... .getSingleResult();         em.getTransaction().commit();                 System.out.println("TOTAL RECORDS