ObjectDB ObjectDB

Internal Website Search

61-70 of 152 resultsRefresh

Query can't see recently persisted object

. However if I call flush() on the EntityManager after the persist() the object will be found. Clearly I don't want to call flush() on the EntityManager, as I want the container to manage ... ); // Flush is required for query to find object // mem.flush(); } ... paul

Memory Leaks after COMMIT operation (checked on versions 2.6.5 & 2.6.6.b01)

); } m_EntityManager.getTransaction().commit(); m_EntityManager.flush(); m ... (); m_DataKeysCache.clear(); m_EntityManager.flush(); m_EntityManager.clear(); } When we completed import data to database we also using following code for flush all data to DB

Run out of memory

#Batch_Store_. However the problem is that it seems that even calling flush followed by clear ... ) {     this.commitCount.set(0); this.em.flush(); this.em.clear(); System.err.println("Flushing"); } } protected void onCommit() {     this.em.getTransaction().commit

Remove not working

earlier in the same transaction. No exception is thrown if em.flush() is invoked before em.remove ... . The fix was to do a PersistenceManager.flush() before trying to gather the Extent the second time. I did ... . transaction.begin get Extent, traverse its entries, delete an object in there // needs a flush

Cannot save or update entity on Spring App

public Language persist(Language guest) { em.persist(guest); em.flush ... .flush(); em.refresh(guest); em.clear(); em.close(); return guest ... ().commit(); em.flush(); em.clear(); em.close(); return guest

After using the enhancer, Lazy loaded collections are no longer loading. They are set as null

Account(); entityManager.persist(account); entityManager.flush(); Project project = new Project(); project.setAccount(account); entityManager.persist(project); entityManager.flush ... ();                 Account account = new Account();         em.persist(account);         em.flush

objectdb-2.6.9_06: Extended Persistence Context fails: 'Attempt to begin a new transaction when a transaction is active'

(o); if (Global.USE_OBJECTDB) { em.flush(); //ObjectDB ensure id ... .TransactionRequiredException //Attempt to flush a transaction when no transaction is active ... .persistence.TransactionRequiredException Attempt to flush a transaction when no transaction is active

com.objectdb.o.InternalException: java.lang.ArrayIndexOutOfBoundsException: null:

_OBJECTDB) { em.flush(); //ObjectDB ensure id exists ... ownedElement) { if (DO_PRE_FLUSH) { em.flush(); } if (owner

NoResultException: No matching results for a unique query

modifying the flush mode. Which flush mode are using? support Support Hi, I didn't change it so I am using the default Flush Mode (COMMIT). I don't get why this is happening, it just has happened

Internal exception

to resolve a mapped by relationship, which required a flush before running the mapped by query (due to changes since last commit/flush) in order to retrieve the mapped by instances. The stack trace indicates a failure to cascade persist operation from unknown reason during that flush. Any

Getting Started

ObjectDB is very easy to use. Follow the Getting Started Tutorial and the Quick Tour manual chapter and in minutes you may be able to write and run first Java programs against ObjectDB.

Prior knowledge or experience in database programming (SQL, JDBC, ORM, JPA, etc.) is not required, but some background in using the Java language is essential.

Need Help?

  1. Search ObjectDB website
  2. Read the FAQ
  3. Follow the Tutorials
  4. View or post in the forum
  5. Search or file an issue
  6. Contact support