Home » Search

About EntityManagerFactory

61-70 of 200Refresh
Forum
2

Persist error @ManyToMany how to define correct entities relationships

.Entity; import javax.persistence.EntityManager; import javax.persistence.EntityManagerFactory; import ... Test(); t.test(); } public static class Test{ EntityManagerFactory emf ... .persistence.EntityManager; import javax.persistence.EntityManagerFactory; import javax.persistence
Forum
2

Configure ObjectDB in spring context

to inject EntityManagerFactory to my beans. Could you help me on this? You can see how to use ... > entityManagerFactory"); } @Bean public JpaTransactionManager
Forum
2

@Unique member combination not working

, ServletContext servletContext) {         EntityManagerFactory emf = (EntityManagerFactory) servletContext ... EntityManagerFactory emf =         Persistence.createEntityManagerFactory(             "objectdb ... a static EntityManagerFactory so I don't think it should be too much of a problem. It should work
Forum
2

Performance in large transactions

; import javax.persistence.EntityManagerFactory; import javax.persistence.FlushModeType; import ... _OneTransaction() {   EntityManagerFactory emf = Persistence     .createEntityManagerFactory ... ));   emf.close(); } public static void test_ManyTransactions() {   EntityManagerFactory emf
Forum
2

Persist not working when ObjectDB and another db is used in the same application (through spring) with different tx managers

" />  
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