About EntityManagerFactory

151-160 of 200Refresh
Forum
1

ODB tries to create log files inside its own jar on Win7

.persistence.EntityManager; import javax.persistence.EntityManagerFactory; import javax.persistence ... { EntityManagerFactory emf = Persistence.createEntityManagerFactory("objectdb:test.odb"); EntityManager em = emf
Forum
1

Online backup problem

that you are using to run the backup. This is the code I used in my servlet : EntityManagerFactory emf ... standalone application - with the same result.   EntityManagerFactory emf = Persistence
Forum
1

Optimistic locking: prevent version increment on entity collection attribute

public void test() throws IOException { EntityManagerFactory emf = Persistence ... ; } } @org.junit.Test public void test() throws IOException { EntityManagerFactory emf
Forum
1

Performance and memory usage of queries

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

Performance problem

(probably related to the number of related objects) First version of code:     EntityManagerFactory emf ... :     EntityManagerFactory emf =         Persistence.createEntityManagerFactory(             "objectdb
Forum
1

persisting object with long[][] arrays of array

) {         EntityManagerFactory EMF = Persistence.createEntityManagerFactory("TESTDB.odb ... ret;     }     public static void main(String[] args) {         EntityManagerFactory EMF
Forum
1

Problem with distinct select, order by and equivalent alias/attribute path

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

Remove a modified entity cause an optimistic lock exception

void main(String[] args) {         EntityManagerFactory emf =             Persistence ... ) {         EntityManagerFactory emf =             Persistence.createEntityManagerFactory(                 "objectdb
Forum
1

Replication error - parsing objectdb config

: EntityManagerFactory masterEmf = Persistence.createEntityManagerFactory("objectdb://localhost:6136/TestReplication.odb;user=admin;password=admin"); EntityManagerFactory replicatedEmf
Forum
1

Schema-Update: Rename superclass and remove one subclass

Database public static void main(String[] args) { EntityManagerFactory emf = Persistence ... main(String[] args) { // no drop - reuse the existing file EntityManagerFactory emf