ObjectDB ObjectDB

Internal Website Search

21-30 of 39 resultsRefresh
17

Performance and memory usage of queries

.persistence.FlushModeType; import javax.persistence.OneToMany; import javax.persistence ... ;   for (int i = 0; i < 100; i++) {    em = emf.createEntityManager();    em.setFlushMode(FlushModeType.AUTO ... .setFlushMode(FlushModeType.AUTO);   em.getTransaction().begin();   Query q = em.createQuery("DELETE FROM
17

Update more than 10000 entities by an update query fails

(); emOne.setFlushMode(FlushModeType.AUTO); { create10001Elements(emOne ... .setFlushMode(FlushModeType.AUTO); { String query = "UPDATE " + MyModelElement.class ... .getTransaction().begin(); emThree.setFlushMode(FlushModeType.AUTO
17

Duplicate Entity class names causes Exception in Query

.Singleton.count", Long.class); q.setFlushMode(FlushModeType.AUTO); try { return q ... .setFlushMode(FlushModeType.AUTO);   try {    long l = (Long) q.getSingleResult();    if(l > Integer ... demands we flush transaction to db if we wish to see its results q.setFlushMode(FlushModeType.COMMIT
17

remove & persist in same transaction => Attempt to reuse an existing primary key value

Hello Support, in our configuration (FlushModeType.AUTO) is the execution of em.find(Entity.class ... javax.persistence.EntityManagerFactory; import javax.persistence.FlushModeType; import javax ... .createEntityManager(); em.setFlushMode(FlushModeType.AUTO); System.out.println("create and persist"); em
17

Empty temporary dat files in the temp folder

; import javax.persistence.FlushModeType; import javax.persistence.Persistence; public class ... ");   EntityManager em = emf.createEntityManager();   em.setFlushMode(FlushModeType.AUTO);   em.getTransaction ... );   EntityManager em = emf.createEntityManager();   em.setFlushMode(FlushModeType.AUTO);   em
17

Remove a modified entity cause an optimistic lock exception

the object. Flushing changes to the database (by running a query in FlushModeType.AUTO?) Removing the object ... "); EntityManager em = emf.createEntityManager(); em.setFlushMode(FlushModeType.AUTO); em.getTransaction().begin ... and can be demonstrated with a simple console application. In your last post FlushModeType.AUTO
14

Database(*.odb) file size on disk

.EntityManager; import javax.persistence.EntityManagerFactory; import javax.persistence.FlushModeType ... .setFlushMode(FlushModeType.AUTO);   int objects = 1000;   int loops = 3;   for (int iteration = 0
14

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

.Entity; import javax.persistence.EntityManager; import javax.persistence.FlushModeType; import ... .setParameter("container", this); q.setFlushMode(FlushModeType.AUTO); try { long l = (Long) q
4

new objects not available in mappedBy associations

is set to use FlushModeType.AUTO). support Support What does this mean: "Try to refresh the department ... try to find a 'real' example, and I'll also examine the FlushModeType.AUTO option as suggested ... FlushModeType.AUTO in the EntityManager resulted in a huge exception message. dmoshal David Moshal
3

Tracking changes to new collections (in enhancement mode) after flush

.setFlushMode(FlushModeType.AUTO); em.getTransaction().begin(); ModelElementImpl m1 = new ... (); em.close(); em = emf.createEntityManager(); em.setFlushMode(FlushModeType.AUTO ... (); em = emf.createEntityManager(); em.setFlushMode(FlushModeType.AUTO); em

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