About getSingleResult

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

Internal exception when updating date filed (TemporalType.DATE)

");                 return (Long)countQuery.getSingleResult();             } catch (javax.persistence ... Person p"); long personsCount = (long) countQuery.getSingleResult
Issue
2

InternalException using 2.3.7_12

.objectdb.jpa.JpaQuery.getSingleResult(JpaQuery.java:716) at sun.reflect.GeneratedMethodAccessor62 ... ) at $Proxy56.getSingleResult(Unknown Source) at com.contextspace.dao.party.impl.EntitlementDAOImpl
Issue
2

Issues with JDO Casting & Full Qualified Names

'";   System.out.println("4: " + em.createQuery(query).getSingleResult());   em.close();   emf.close ... ).getSingleResult());         em.close();         emf.close();     } } @Entity final class
Forum
2

Left join fetch behaviour doesn't retrieve children?

.class);                MyEntity myEntity = query.getSingleResult();                 // Ok my em ... .class);   MyEntity myEntity = query.getSingleResult();   // Ok my em is now closed, let's