About getSingleResult

71-80 of 91Refresh
Forum
1

java.lang.ClassCastException in OSGi runtime when loading data from DB

);   Person singleResult = typedQuery.getSingleResult();   System.out.println(singleResult);   return
Forum
1

JPA does not seem to be db agnostic

)); return em.createQuery(query).getSingleResult(); } A valid JPQL query must include SELECT
Forum
1

Memory Leak?

.executeUpdate();    Device d = (Device) q1.getSingleResult();    //em.remove(d);    if (j%10000==0
Forum
1

Merge with Parent/Child entities not possible

parentEntity = parentEntityQuery.getSingleResult();   entityManager.refresh(parentEntity);   Assert
Issue
1

New entity objects are duplicated on merge cascading

");         System.out.println(query.getSingleResult());         em.close();         emf.close
Forum
1

newbie - lots of exeptions

) at com.objectdb.jpa.JpaQuery.getSingleResult(JpaQuery.java:716) at com.prohire.prohire_sync
Issue
1

NullPointer when accessing persistent field

= emf.createEntityManager();         a = em.createQuery("SELECT a FROM A a", A.class).getSingleResult
Issue
1

NullpointerException at a normal select

When I run the following code: EntityManager em = getEm(); Customer result = null; try {     logger.debug("Ident: "+ident);     result = em.createQuery("Select c from Customer c where c.identifier=:id", Customer.class).setParameter("id", ident).getSingleResult(); } catch (javax.persistence
Forum
1

Online backup in embedded mode fails

.java:498) at com.objectdb.o.QRY.s(QRY.java:292) at com.objectdb.jpa.JpaQuery.getSingleResult
Forum
1

Online backup with JDO

with the code em.createQuery("objectdb backup").getSingleResult(); But how do I start it if I am using