Home » Search

About getSingleResult

11-20 of 84Refresh
JPA Doc
9

javax.persistence.NonUniqueResultException

Interfaces: Serializable Thrown by the persistence provider when Query.getSingleResult() or TypedQuery.getSingleResult() is executed on a query and there is more than one result from the query ... .0 See Also: Query.getSingleResult() TypedQuery.getSingleResult() NonUniqueResultException
JPA Doc
9

javax.persistence.NoResultException

: Serializable Thrown by the persistence provider when Query.getSingleResult() or TypedQuery.getSingleResult ... .getSingleResult() TypedQuery.getSingleResult() NoResultException() Constructs a new NoResultException exception
JPA Doc
6

javax.persistence.TypedQuery

back Since: JPA 2.0 Object getSingleResult() Execute a SELECT query that returns a single untyped result ... getSingleResult() Execute a SELECT query that returns a single result. Execute a SELECT query
JPA Doc
4

javax.persistence.Query

the query timeout value set and the transaction is rolled back Since: JPA 1.0 Object getSingleResult
Forum
4

Duplicate Entity class names causes Exception in Query

.getSingleResult(JpaQuery.java:664) at objdbTest.Singleton.findItem(Singleton.java:62) at objdbTest ... ) at com.objectdb.o.QRR.b(QRR.java:144) at com.objectdb.jpa.JpaQuery.getSingleResult(JpaQuery.java:657 ... { return q.getSingleResult(); } catch (NoResultException e) { return null
Forum
4

Error 363 - Failed to read value of inverse relationship

) at com.objectdb.jpa.JpaQuery.getSingleResult(JpaQuery.java:723) at org.dyndns.fzoli.mill.server ... (QRR.java:187) at com.objectdb.jpa.JpaQuery.getSingleResult(JpaQuery.java:716) ... 31 more Caused ... ("name", name).getSingleResult(); } catch (PersistenceException ex) { ex
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