About getSingleResult

71-80 of 93Refresh
Issue
1

Internal Exception

.objectdb.jpa.JpaQuery.getSingleResult(JpaQuery.java:723) [objectdb-2.4.4_05.jar:] ... Caused by: java
Issue
1

InternalException - error reading field from "queue" database

) at com.objectdb.jpa.JpaQuery.getSingleResult(JpaQuery.java:654)   Could you put the database file
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