About EntityManagerFactory

91-100 of 200Refresh
Issue
1

combined index not used

main(String[] args) throws Exception { EntityManagerFactory emf ... :                       entityManager = entityManagerFactory.createEntityManager();                     Thread thread = entityManager ... { System.setProperty("objectdb.temp.no-schema-upgrade", "true"); EntityManagerFactory emf
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 speed

hii i have one problem . as you said close EntityManagerFactory to restore database its works ... to store data that is not happening when EntityManagerFactory not closed  You can proceed with loading the csv file as usual after reopening the EntityManagerFactory. prateek
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

ObjectDB-2.6.9: Failed to commit transaction: Failed to set numeric value of field property Element.id using reflection

and persisted in Main in protected void createProject(EntityManagerFactory emf): protected void createProject(EntityManagerFactory emf) { format().outHeader2("Create Project and Element ... (); ... On attempting to persist it get error: Create EntityManagerFactory .. ****** Create
Forum
1

objectdb-2.6.9_02 (with "objectdb.temp.no-enhancement-crc-check") vs. generic classes with interfaces: detailed investigation

()         );         EntityManagerFactory emf =             Persistence.createEntityManagerFactory ... EntityManagerFactory .. 2016-08-23 00:12:32.946 INFO Main []: *** Create Project and Element model ... at: 61: protected void createProject(EntityManagerFactory emf) { log_info("*** Create Project