ObjectDB ObjectDB

Internal Website Search

191-200 of 200 resultsRefresh
7

Does ObjectDB support lazy loading?

. However, when the Parent object is read from EntityManager, all the properties except ID of the Child objects are null. The EntityManager is not yet closed when the getters are called. After I change the annotation ... "; EntityManagerFactory emf = Persistence.createEntityManagerFactory(path); EntityManager em = emf
7

Possible issue with LAZY Loading

EntityManager, but it is fetched lazily when needed. You do see a difference (in addition to performance differences) when the EntityManager is closed or results are detached. In this case, LAZY data will not ... is broken, cause if I close the entityManager without calling "getLocationList" which is marked as LAZY
7

"Attempt to lock a non entity object" error

to call setRetainValues once per EntityManager. support Support I've downloaded the new build and tried ... ; import javax.persistence.EntityManager; import javax.persistence.EntityManagerFactory; import javax ... \\workspace\\TestProject\\Storage.odb");         EntityManager em = emf.createEntityManager
7

Unable to persist TreeMap

; import javax.persistence.EntityManager; import javax.persistence.EntityManagerFactory; import ... \\workspace\\TestProject\\Storage.odb");         EntityManager em = emf.createEntityManager ... ) at Enhance.main(Enhance.java:6) import java.util.Map; import javax.persistence.EntityManager
7

find() delay

trans is not a transaction of em. Maybe different EntityManager instances are used and the L2 cache ... ");         EntityManager em = emf.createEntityManager();                for (int i = 0; i < 30; i ... = Persistence.createEntityManagerFactory("$objectdb/db/test.odb");   EntityManager em = emf
7

Schema Update: class hierarchy change

.persistence.Entity; import javax.persistence.EntityManager; import javax.persistence ...     .createEntityManagerFactory("objectdb:$objectdb/db/test.tmp;drop");   EntityManager em = emf ... .EntityManager; import javax.persistence.EntityManagerFactory; import javax.persistence.Persistence
7

multiple LEFT JOINs do not work as expected

.createEntityManagerFactory(                 "objectdb:test.tmp;drop");         EntityManager em = emf ... ();         emf.close();     }         private static Node persistTree(EntityManager em, Node parent, int ... "); EntityManager em = emf.createEntityManager(); em.getTransaction().begin
7

Slave server not getting deletes

is needed if used to clear all cache, e.g. to open a new EntityManager after such query operations ... the EntityManager may break its synchronization with the database. For example, the EntityManager may not ... a DELETE query. Therefore, it is a good practice to use a separate EntityManager for DELETE queries
7

Query only works correctly when debug printing results

the EntityManager and Factory instance. When executing the code with the debug printing ... ); EntityManager em = emf.createEntityManager(); TypedQuery query = em.createQuery("SELECT l from ... , then closing entityManager instance. Solutions i tried: Putting the thread to sleep a few seconds
1

Issues with JDO Casting & Full Qualified Names

.persistence.Embeddable; import javax.persistence.Entity; import javax.persistence.EntityManager ... .createEntityManagerFactory("objectdb:$objectdb/db/test4.tmp;drop");   EntityManager em = emf ... .Entity; import javax.persistence.EntityManager; import javax.persistence.EntityManagerFactory; import

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