Home » Search

About EntityManagerFactory

111-120 of 200Refresh
Forum
1

Drop in Client/server mode not working

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

Drop the entire database, Change the schema

:     EntityManagerFactory emf =         Persistence.createEntityManagerFactory("myDbFile.odb;drop"); What do you think ... . You can override an existing database file by adding ;drop to the url:     EntityManagerFactory emf
Forum
1

em.flush(); em.clear(); loosing data and not persisting managed objects

.persistence.EntityManagerFactory; import javax.persistence.Persistence; public class Test { private final EntityManagerFactory emf; private final EntityManager em; public Test
Forum
1

Empty query results after JAR creation

. The main class of the test case looks like this:     EntityManagerFactory emf =         Persistence ... :     EntityManagerFactory emf =         Persistence.createEntityManagerFactory("src/main/resources
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