About EntityManager

forum_thread

javax.persistence.PersistenceException

Hi I am trying to get a basic EclipseRCP project working with Objectdb. At the very first line in creating a View public void createPartControl(Composite parent) { EntityManagerFactory emf = Persistence.createEntityManagerFactory("$objectdb/db/pilots.odb"); I get the following "javax.persistence.PersistenceException: No Persistence provider for EntityManager named pilots.odb at javax.persistence.Persistence.createEntityManagerFactory(Unknown Source)....." ... No Persistence provider for EntityManager named pilots.odb at ... error with " No Persistence provider for EntityManager named $objectdb/db/pilots.odb" as the cause.   ...

 
release

2.7.0

... 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.7.1

... 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

Null pointer exception being thrown from within ObjectDB.

EXCEPTION/DESCRIPTION:... ... CriteriaBuilder cb = entityManager. getCriteriaBuilder ( ) ; ... ; TypedQuery<ReportDownloadObject> query = entityManager. createQuery ( q ) ; ...

 
forum_thread

Query in JPA2 with LEFT JOIN on INNER JOIN

select a.description, a.id, p1.description, p2.description,p3.description from action a left join action_profile ap1 on ap1.id_action=a.id inner join profile p1 on  ap1.id_profile=p1.id  and p1.name='?' left join action_profile ap2 on ap2.id_action=a.id inner join profile p2 on  ap2.id_profile=p2.id  and p2.name='?' where a.id =?;   Thanks   ... my critera query: CriteriaBuilder cb = entityManager. getCriteriaBuilder ( ) ; ... query = entityManager. createQuery ( cq ) ; return ...

 
release

2.6.9

... 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.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 ...

 
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. ...