About EntityManagerFactory

111-120 of 200Refresh
Forum
1

Database absolute filepath

Is there a line of code that can be used to print out my databases absolute path? I have set it as follows: EntityManagerFactory emf = Persistence.createEntityManagerFactory("$objectdb/database ... { public static void main(String[] args) { EntityManagerFactory emf = Persistence
Forum
1

Database(*.odb) file size on disk

.EntityManager; import javax.persistence.EntityManagerFactory; import javax.persistence.FlushModeType ... main(String[] args) {   EntityManagerFactory emf;   emf = Persistence.createEntityManagerFactory
Forum
1

Date field Index is corrupted due to time change

.EntityManager; import javax.persistence.EntityManagerFactory; import javax.persistence.GeneratedValue ... dtf = new SimpleDateFormat("yyyy.MM.dd HH:mm:ss");                 EntityManagerFactory emf
Forum
1

Does ObjectDB support lazy loading?

(String[] args)   { String path = "test.odb"; EntityManagerFactory emf ... [] args)  {     String path = "test.odb";     EntityManagerFactory emf = Persistence
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