About EntityManagerFactory

121-130 of 200Refresh
Forum
1

Entity factory - best practices

at the same time? Creating multiple EntityManagerFactory instances is thread safe but inefficient. It is more efficient to create one EntityManagerFactory per database during the application lifecycle, as demonstrated in the Guest Book web application tutorial.
Forum
1

EntityManager refresh problem

; import javax.persistence.EntityManagerFactory; import javax.persistence.Persistence; import javax ... (dbFileName);         odbFile.delete();         EntityManagerFactory emf = Persistence
Forum
1

Exception when querying Map property with @embedded & Enhancer enabled

.EntityManagerFactory; import javax.persistence.Persistence; public class TestEmbeddableMap { public static void main(String[] args) {   EntityManagerFactory emf =     Persistence.createEntityManagerFactory
Forum
1

Failed to read DB file while online backup is running

(); } } and here is the interesting part of JDODatabase: private EntityManagerFactory emf; private EntityManagerFactory
Forum
1

failure to enforce NOT NULL for java.lang.String

public void regressionTest() { EntityManagerFactory emf = Persistence ... ){         EntityManagerFactory emf =             Persistence.createEntityManagerFactory
Forum
1

find() delay

void main(String[] args){         EntityManagerFactory emf = Persistence ... ){   EntityManagerFactory emf = Persistence.createEntityManagerFactory("$objectdb/db/test.odb
Forum
1

Help with 'not like/lower' query

.EntityManagerFactory; import javax.persistence.Persistence; import javax.persistence.TypedQuery ... void main(String[] args)  {         EntityManagerFactory emf =             Persistence
Forum
1

How to do multithreading with embedded ObjectDB

Hi, I've tried to implement a counter with ObjectDB, but the following code doesn't work as expected: final EntityManagerFactory emf = Persistence.createEntityManagerFactory("test.odb ... ); final EntityManagerFactory emf = Persistence.createEntityManagerFactory
Forum
1

How to use JOIN FETCH?

javax.persistence.EntityManager; import javax.persistence.EntityManagerFactory; import javax ... ())   {    file.delete();   }   file.createNewFile();   EntityManagerFactory emf = Persistence
Issue
1

huge heap usage

The heap dump shows one EntityManagerFactory with 105,689 EntityManager instances. This could be caused ... one EntityManagerFactory (EMF):   thanks, this helps pretty much hgzwicker