About getSingleResult

61-70 of 93Refresh
Issue
1

Can't open replicated database

) at com.objectdb.jpa.JpaQuery.getSingleResult(JpaQuery.java:654) at rbccm.felix.objectdb.messaging
Forum
1

Cannot catch a PersistenceException and continue the transaction

I try to create a factory that creates new objects just in case it doesn't find the relevant one in the DB. but because query.getSingleResult() fires NoResultException in that case it marks the transaction as one that need to be rolled back. I understood that I can overcome it in several ways
Forum
1

Conflicting modifiers .... (javax.persistence.Id, javax.persistence.ManyToOne)

("numberOfMapItems"); q.setFlushMode(FlushModeType.AUTO); try { long l = (Long) q.getSingleResult
Forum
1

createQuery method error

).getSingleResult()>0 ? true : false; } Once I compile it, Error: C:\Users\xxx\xxxxx\vobs\xxxxx\xxxxx\src\main
Forum
1

CriteriaQuery .where() for multiple conditions

).getSingleResult(); em.getTransaction().commit(); } finally { if (em.getTransaction().isActive()) { em
Forum
1

database migration

:153) at com.objectdb.jpa.JpaQuery.getSingleResult(JpaQuery.java:750) at com.example.dao
Forum
1

Drop in Client/server mode not working

(             em.createQuery("SELECT COUNT(e) FROM MyEntity e").getSingleResult());         em.close
Forum
1

EntityManager JPA or JDO impl and different behavior

h FROM Holder h",             Holder.class).getSingleResult();         em.close
Forum
1

enumeration table? how to on pure jpa?

).getSingleResult();   Alternatively you can define a special entity class, e.g. GlobalProperty
Forum
1

Failed to read DB file while online backup is running

.getSingleResult();   // Wait until the backup is completed.   try {    backupThread.join