About EntityManagerFactory

81-90 of 200Refresh
Forum
2

Empty temporary dat files in the temp folder

have a connection (open EntityManagerFactory). For each user action we create an EntityManager ... .EntityManager; import javax.persistence.EntityManagerFactory; import javax.persistence.FlushModeType ... *.dat files"); } public static void createDB(String db) {   EntityManagerFactory emf
Forum
2

Filename.odb$ Persisting Issue

if the EntityManagerFactory (or PersistenceManagerFactory if you use JDO) is not closed before ... closing the EM's and EMF, no? If emf this is the only EntityManagerFactory instance in ... static EntityManagerFactory emf = Persistence.createEntityManagerFactory("$objectdb/db/payrollDB
Forum
2

How force always recreate database on redeployment.

the provided links. From EntityManagerFactory: Connection URL Parameters To obtain a connection to an empty ... :   EntityManagerFactory emf =       Persistence.createEntityManagerFactory("objectdb:myDbFile.tmp;drop"); But I ... EntityManagerFactory from EntityManager.getEntityManagerFactory, but by then it is constructed
Forum
2

Null returned by Persistence.createEntityManagerFactory

.    public class TaskDaoODBImpl implements TaskDao {     private EntityManagerFactory emf;        private ... on the createEntityManagerFactory call:   public class TaskDaoODBImpl implements TaskDao {     private EntityManagerFactory emf ... but it never returns null: public static EntityManagerFactory createEntityManagerFactory(String
Forum
2

openejb jpa jaas module

javax.persistence.EntityManager; import javax.persistence.EntityManagerFactory; import javax ... callbackHandler; private EntityManagerFactory entityManagerFactory; private ... :6136/myDbFile.odb entityManagerFactory = Persistence.createEntityManagerFactory((String
Forum
2

Remove an entity which attributes were changed - OptimisticLockException

seems to be using one or more EntityManagerFactory / EntityManager instances, i.e ... "? Are you sure that the same EntityManager (not just the same EntityManagerFactory) is used by ... T1855 {     public static void main(String[] args) {         EntityManagerFactory emf
Issue
2

Threaded Test - Failed to commit transaction: Unexpected internal exception

() {         EntityManagerFactory emf = Persistence.createEntityManagerFactory(             "$objectdb/db ... extends TestRunnable {         private String _name;         private EntityManagerFactory _emf;         private int _num;         public ObjectDbProducer(String name, EntityManagerFactory emf, int num
Issue
2

Unexpected Exception during commit

.fastmodel.fastplan.db.EntityManagerFactory.doFilter(EntityManagerFactory.java:158) at org.apache ... case that produces the exception every time:     javax.persistence.EntityManagerFactory emf ... .Enhancer.enhance(Enhancer.java:87) at com.fastmodel.fastplan.db.EntityManagerFactory
Forum
2

Weird behaviour with enhanced classes and embedded entities

.persistence.EntityManager; import javax.persistence.EntityManagerFactory; import javax.persistence ... ("objectdbsscce.*");         // open db     EntityManagerFactory entityManagerFactory = Persistence.createEntityManagerFactory("objectdbsscce.odb");     entityManager = entityManagerFactory
Forum
1

Guessbook tutorial: Java EE 6 JPA Tutorial - Maven Project

._PersistenceException: Attempt to obtain a connection from a closed EntityManagerFactory at com ... EntityManagerFactory at com.objectdb.o.MSG.d(MSG.java:61) at com.objectdb.o.OMF.ah(OMF.java:661) at com ... ._PersistenceException: Attempt to obtain a connection from a closed EntityManagerFactory at com.objectdb.o