About EntityManager

tutorial

Step 4: Add a Servlet Class

Explains how to add a servlet that manages persistence using JPA and ObjectDB to an Eclipse Web Application.... . getAttribute ( "emf" ) ; EntityManager em = emf. createEntityManager ( ) ; ... from the application scope attribute, and then an EntityManager (representing a database connection) is constructed. ...

 
release

2.6.8

... an exception when accessing an object with a closed EntityManager . Fixed a bug in viewing content of a TreeMap ... error message for creating a query with a closed EntityManager ( issue #182 ). Version 2.4.6 ...

 
issue

NullPointerException when using multithreading

[ObjectDB 2.4.4_08] Unexpected exception (Error 990)   Generated by Java HotSpot(TM) Client VM 1.6.0_29 (on Windows 7 6.1). Please report this error on http://www.objectdb.com/database/issue/new com.objectdb.o.InternalException: java.lang.NullPointerException: null java.lang.NullPointerException at com.objectdb.o.ENT.C(ENT.java:557) at com.objectdb.o.OBM.bz(OBM.java:385) at com.objectdb.o.OBM.bz(OBM.java:261) at com.objectdb.jpa.EMImpl.persist(EMImpl.java:377) at ... ... and each thread has its own instance of EntityManager.  After 500 persists, the thread calls a flush() on the ... the EntityManagerFactory is closed with all its EntityManager instances, but there are still running tasks that use  EntityManager instances. ObjectDB Support ...

 
release

2.4.6

... ( issue #176 ). Fixed a problem of EntityManager auto closing. Fixed ArrayIndexOutOfBounds on ... file is empty ( issue #142 ). Removed EntityManager conflict checks in NO DETACH mode . Fixed a ...

 
forum_thread

multi thread application, id field sporadically null

We are testing objectDB with a multi thread application. Each thread has it's own entityManager created from a common factory. In one thread we receive sometimes an object from the database with the field that is declared as @Id having the value null (what is not correct, we checked that with the explorer). The class is declared like this: ... ... a multi thread application. Each thread has it's own entityManager created from a common factory. In one thread we receive ... that has no id yet. You may want to check if using a new EntityManager with an empty cache makes a difference, as well as disabling ...

 
tutorial

Step 4: Add a Servlet Class

Explains how to add a servlet that manages persistence using JPA and ObjectDB to a NetBeans Web Application.... . getAttribute ( "emf" ) ; EntityManager em = emf. createEntityManager ( ) ; ... from the application scope attribute, and then an EntityManager (representing a database connection) is constructed. ...

 
forum_thread

Database is locked when in use

I am oberving that when i reading anything from odbfiles, i am not allowed to copy and paste the odb files in the file system but the same i was able to do it in object db 1.0. We supprt export functionality and if i am not allowed to copy it in objectdb 2.x, then its a problem for us :-( Do you have any settings or other way to handle this? ... through the online backup web page, it is mentioned for EntityManager. How do i achieve the same for PersistenceManager as I am ... You should be able to cast PersistenceManager to EntityManager . In ObjectDB the same object is an instance of both ...

 
release

2.6.7

... an exception when accessing an object with a closed EntityManager . Fixed a bug in viewing content of a TreeMap ... error message for creating a query with a closed EntityManager ( issue #182 ). Version 2.4.6 ...

 
release

2.4.5

... ( issue #176 ). Fixed a problem of EntityManager auto closing. Fixed ArrayIndexOutOfBounds on ... file is empty ( issue #142 ). Removed EntityManager conflict checks in NO DETACH mode . Fixed a ...

 
forum_thread

Spring + Maven + persitence.xml

Hi, I tested ObjectDB embedded and it is really fast! Everything worked out of the box. Maven: <dependency>    <groupId>com.objectdb</groupId>    <artifactId>objectdb</artifactId>    <version>2.4.3</version>   </dependency> Persistence.xml ... Could not open JPA EntityManager for transaction; nested exception is ... Could not open JPA EntityManager for transaction; nested exception is ...