About EntityManagerFactory

91-100 of 200Refresh
Forum
1

ArrayIndexOutOfBoundsException at com.objectdb.o.ALS.c(ALS.java:89)

.run(ForkJoinWorkerThread.java:325) Line 16 in ArpMonitor.scala: val emf: EntityManagerFactory ... to create a single EntityManagerFactory with multiple EntityManager instances. It is uncommon to create multiple EntityManagerFactory instances as demonstrated by your code. tuec
Forum
1

Entity factory

> entityClass); } EntityManagerFactory entityManagerFactory = (...); entityManagerFactory
Forum
1

Finding out the JPA provider

and EntityManagerFactory, but its not. So I am left with EntityManager.getDelegate() instanceof com.objectdb.jdo.PMImpl or EntityManagerFactory instanceof com.objectdb.jpa.EMF. Or putting something in ... for the "objectdb.home" property. In the EntityManagerFactory:     boolean isObjectDB = emf
Forum
1

mapping file is not being loaded

: EntityManagerFactory emf = Persistence.createEntitManagerFactory("project.odb"); //this set ... .EntityManagerFactory; import javax.persistence.Persistence; public class T824 {     public static void main(String[] args) {         EntityManagerFactory emf =             Persistence
Forum
1

Memory leak

when the user logs out, as well as EntityManagerFactory. We use em.clear() after every commit ... that 9 EntityManagerFactory instances have been created and have not been closed, and ObjectDB is very sensitive for closing every opened EntityManagerFactory. Please try build 2.5.4_05, which includes
Forum
1

Merge Issue: Attempt to reuse an existing primary key value

class MyTestCase {     public static void main(String[] args)  {         EntityManagerFactory emf ...     public void test() {         EntityManagerFactory emf =             Persistence ... void test() {         EntityManagerFactory emf =             Persistence.createEntityManagerFactory
Forum
1

ObjectDB within a resource adapter module and Java EE Connector Architecture

an XML file in order to be able to generate an EntityManagerFactory. But when using ObjectDB ... of the ObjectDB database instead:' EntityManagerFactory emf = Persistence.createEntityManagerFactory("$objectdb/db/points.odb"); But if you are not using an explicit EntityManagerFactory it is not
Issue
1

Remove of an entry from a @OneToMany collection is not possible if the enhancer is disabled

.persistence.EntityManager; import javax.persistence.EntityManagerFactory; import javax.persistence ... [] args) {   EntityManagerFactory emf = Persistence.createEntityManagerFactory("objectdb:$objectdb/db ... {     public static void main(String[] args) {         EntityManagerFactory emf
Forum
1

system exception occurred during an invocation on EJB GuestDao

.lang.IllegalStateException: Unable to retrieve EntityManagerFactory for unitName null at com.sun ... EntityManagerFactory for unitName null at com.sun.enterprise.container.common.impl.EntityManagerWrapper.init ... : Unable to retrieve EntityManagerFactory for unitName null You may have missed one of the tutorial
Forum
1

UserException: Invalid configuration in 'internal' - Check permissions

: EntityManagerFatory entityManagerFactory = Persistence.createEntityManagerFactory(filePath); EntityManager = entityManagerFactory.createEntityManager(); However I get the following error com.objectdb.o ... if the EntityManagerFactory class can't be initialized because it can't find the database. I have tried