Home » Search

About getSingleResult

51-60 of 84Refresh
Forum
2

Using the wrong class to access a database

Point p"); System.out.println("Total Points: " + q1.getSingleResult()); // 2 Query q2 ... .getSingleResult()); // 3 get all points TypedQuery query = em.createQuery("SELECT p FROM
Issue
2

Unexpected error when loading all entity instance

.objectdb.o.QRR.f(QRR.java:153) at com.objectdb.jpa.JpaQuery.getSingleResult(JpaQuery.java:750) at com.querydsl.jpa.impl.AbstractJPAQuery.getSingleResult(AbstractJPAQuery.java:183) at com.querydsl.jpa
Forum
1

Activation key causes database to not start

: boolean isActivated = em.createQuery("objectdb activation", boolean.class).getSingleResult(); Perfect! Thank you. CK1000 zmirc
Forum
1

Broken @ManyToOne reference

.createQuery("SELECT  e FROM Child e", Child.class).getSingleResult(); because Main.CHILD_ID
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