ObjectDB Database Search

51-57 of 57 results

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

Activation key causes database to not start

= em.createQuery("objectdb activation", boolean.class). getSingleResult (); support Support Perfect! Thank you. zmirc Mircea Chirac

Wrong data stored in time only fields

;   Long r = (Long) q. getSingleResult ();          

createQuery method error

Hello, I am learning ObjectDB now. I create a simple Dao method as below:   public boolean isJobExist(String name) { TypedQuery query = em.createQuery( "SELECT count(j) FROM MFJob j WHERE j.jobName = :name", Long.class); return query.setParameter("name", name). getSingleResult ()0 ? true

user defined backup target

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

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

user defined backup file

("name", "Backup"); backupQuery. getSingleResult (); This should create a backup file with the original