About getSingleResult

81-90 of 96Refresh
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
Forum
1

Replication error - parsing objectdb config

.getSingleResult()); replicatedManager.close(); } catch (Throwable e) { e
Forum
1

Should derived fields of an EmbeddedId be manually maintained by app code?

.getSingleResult(); if (l > Integer.MAX_VALUE) return -1; int i = (int) l; return i
Issue
1

unexpected exception

:210) at com.objectdb.o.QRR.b(QRR.java:138) at com.objectdb.jpa.JpaQuery.getSingleResult(JpaQuery.java
Issue
1

unexpected exception - in query

:210) at com.objectdb.o.QRR.b(QRR.java:138) at com.objectdb.jpa.JpaQuery.getSingleResult(JpaQuery.java
Issue
1

user defined backup file

", "/User");     backupQuery.setParameter("name", "Backup"); backupQuery.getSingleResult
Forum
1

user defined backup target

("target", new java.io.File("c:\\backup")); backupQuery.getSingleResult(); The code above, for instance
Forum
1

Wrong data stored in time only fields

DateTime AS r");         Long r = (Long) q.getSingleResult();                 System.out.println