ObjectDB ObjectDB

Internal Website Search

11-20 of 102 resultsRefresh
20

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; } } public
19

Error 363 - Failed to read value of inverse relationship

.objectdb.jpa.JpaQuery.getSingleResult(JpaQuery.java:723) at org.dyndns.fzoli.mill.server.model.dao ... :187) at com.objectdb.jpa.JpaQuery.getSingleResult(JpaQuery.java:716) ... 31 more Caused by: com ... ).getSingleResult(); } catch (PersistenceException ex) { ex
18

Performance in large transactions

(); transaction.begin (); // the "problem" Query Entity2 x = //query (getSingleResult): "select e from ... ; i ++) {     // the "problem" Query     Entity2 x = //query (getSingleResult): "select e from ... );    myEntity = q.getSingleResult();    MyEntityElement myEntityElement = new MyEntityElement
16

Join performance in Objectdb

" +             "WHERE a.bId = b.id AND a.cId = c.id", Long.class);         result = q1.getSingleResult ... = c", Long.class);         result = q2.getSingleResult();         elapsedTime ... .getSingleResult();         elapsedTime = System.currentTimeMillis() - ms;         System.out.println
16

New to Product & Having An Issue

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

Possible issue with timestamps

) FROM CDI c", Long.class);         Long cdiCount = query.getSingleResult();         assertEquals(22 ... .class);         cdiCount = query.getSingleResult();         assertEquals(3, cdiCount.intValue ... ("enddate", endDate);         cdiCount = query.getSingleResult();         assertEquals(3, cdiCount
8

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
8

javax.persistence.NoResultException

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

javax.persistence.TypedQuery

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

javax.persistence.Query

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

Getting Started

ObjectDB is very easy to use. Follow the Getting Started Tutorial and the Quick Tour manual chapter and in minutes you may be able to write and run first Java programs against ObjectDB.

Prior knowledge or experience in database programming (SQL, JDBC, ORM, JPA, etc.) is not required, but some background in using the Java language is essential.

Need Help?

  1. Search ObjectDB website
  2. Read the FAQ
  3. Follow the Tutorials
  4. View or post in the forum
  5. Search or file an issue
  6. Contact support