ObjectDB Database Search

51-89 of 89 results

Online backup in embedded mode fails

) at com.objectdb.o.QRY.s(QRY.java:292) at com.objectdb.jpa.JpaQuery. getSingleResult (JpaQuery.java:648

Conflicting modifiers .... (javax.persistence.Id, javax.persistence.ManyToOne)

) q. getSingleResult (); if (l Integer.MAX_VALUE) return -1; int i = (int) l; return i; } catch (javax

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; } catch (javax

EntityManager JPA or JDO impl and different behavior

). getSingleResult ();         em.close();     

Drop in Client/server mode not working

) FROM MyEntity e"). getSingleResult ());         em.close();  

enumeration table? how to on pure jpa?

). getSingleResult ();   Alternatively you can define a special entity class, e.g. GlobalProperty

JPA does not seem to be db agnostic

.where(criteriaBuilder.equal(path, username)); return em.createQuery(query). getSingleResult (); } kasavbere kasav

newbie - lots of exeptions

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

Broken @ManyToOne reference

). getSingleResult (); because  Main.CHILD_ID is only part of the primary key now. support Support Hi support

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

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

Online backup with JDO

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

CriteriaQuery .where() for multiple conditions

)); criteriaQuery.where(criteria); person = em.createQuery(criteriaQuery). getSingleResult (); em.getTransaction

Merge with Parent/Child entities not possible

);   ParentEntity parentEntity = parentEntityQuery. getSingleResult ();   entityManager.refresh

Wrong data stored in time only fields

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

Activation key causes database to not start

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

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

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

database migration

) at com.objectdb.jpa.JpaQuery. getSingleResult (JpaQuery.java:750) at com.example.dao.AplikacijaDAO

Query can't see recently persisted object

("here"); } MyObject myObject; try { myObject = query. getSingleResult (); } catch (NoResultException ex

Retrieve latest entry in a time-series

the query with a request to return the first result only:     return em.createQuery("...").setMaxResults(1). getSingleResult (); support Support

How to check that ObjectDb licenses are activated?

. createEntityManager (). createQuery ( "objectdb activation" , boolean . class ). getSingleResult

Unexpected query token 'delete' (SELECT is expected) (error 752)

simple codes(see attachment), failed.   gzdillon Lai Yang DELETE queries should not be run with getSingleResult ( which is for SELECT queries). Use executeUpdate instead. See this manual page . support Support

Disable Evaluation possibility

activation", boolean.class). getSingleResult (); Then you can avoid using ObjectDB and generate

query hint

", Thread.class). getSingleResult ();         thread.join();        

unexpected exception - in query

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

unexpected exception

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

Threaded Test - Failed to commit transaction: Unexpected internal exception

) at com.objectdb.o.QRR.b(QRR.java:143) at com.objectdb.jpa.JpaQuery. getSingleResult (JpaQuery.java:645

Can't open replicated database

.QRR.g(QRR.java:225) at com.objectdb.o.QRR.b(QRR.java:144) at com.objectdb.jpa.JpaQuery. getSingleResult

InternalException - error reading field from "queue" database

. getSingleResult (JpaQuery.java:654)   felixobjectdb Richard Szurgot Could you put the database file

NullPointer when accessing persistent field

; a = em.createQuery("SELECT a FROM A a", A.class). getSingleResult ();       

New entity objects are duplicated on merge cascading

(query. getSingleResult ());         em.close();    

Internal Exception

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

user defined backup file

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

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

Exception on comparing array fields against parameters in queries

;   at com.objectdb.jpa.JpaQuery. getSingleResult (JpaQuery.java:755)     at id

Getting an error when adding activation code to conf file

my"); System.out.println(q1. getSingleResult ()); em.close(); emf.close(); } @Entity public static

queries under 2.7.6_4 significantly slower than under 2.7.6

(); Thread thread = em.createQuery( "objectdb statistics", Thread.class). getSingleResult (); thread.join

Unexpected Exception (Error 990) with ArrayIndexOutOfBoundsException

EventLogPersistEntry p"); long rows = 0; try { rows = (long) count. getSingleResult (); } catch (final