About EntityManagerFactory

61-70 of 200Refresh
JDO Doc
2

setTransactionType(name)

Method javax.jdo.PersistenceManagerFactory void setTransactionType(   String name ) Sets the TransactionType for this PersistenceManagerFactory. Permitted values are "JTA" and "RESOURCE_LOCAL". This has the same semantics as the same-named property in JSR-220 EntityManagerFactory. Parameters: name
Forum
2

Memory consumption of empty Strings

[] args) {     EntityManagerFactory entityManagerFactory = Persistence.createEntityManagerFactory("sscce.odb");     EntityManager entityManager = entityManagerFactory.createEntityManager ... ();     entityManagerFactory.close();     System.out.println("let's create a heap dump
Forum
2

Persist error @ManyToMany how to define correct entities relationships

.Entity; import javax.persistence.EntityManager; import javax.persistence.EntityManagerFactory; import ... Test(); t.test(); } public static class Test{ EntityManagerFactory emf ... .persistence.EntityManager; import javax.persistence.EntityManagerFactory; import javax.persistence
Forum
2

Database is erased after deploying a new web application version

from Tomcat's manager? When should I use the close method of EntityManagerFactory and EntityManager ... of EntityManagerFactory and EntityManager? You can close the EntityManagerFactory when the web ... on every request (creating EntityManager instances is much faster than creating EntityManagerFactory
Forum
2

Configure ObjectDB in spring context

to inject EntityManagerFactory to my beans. Could you help me on this? You can see how to use ... > entityManagerFactory"); } @Bean public JpaTransactionManager
Forum
2

@Unique member combination not working

, ServletContext servletContext) {         EntityManagerFactory emf = (EntityManagerFactory) servletContext ... EntityManagerFactory emf =         Persistence.createEntityManagerFactory(             "objectdb ... a static EntityManagerFactory so I don't think it should be too much of a problem. It should work
Forum
2

Performance in large transactions

; import javax.persistence.EntityManagerFactory; import javax.persistence.FlushModeType; import ... _OneTransaction() {   EntityManagerFactory emf = Persistence     .createEntityManagerFactory ... ));   emf.close(); } public static void test_ManyTransactions() {   EntityManagerFactory emf
Forum
2

Persist not working when ObjectDB and another db is used in the same application (through spring) with different tx managers

" />  
Forum
2

Empty temporary dat files in the temp folder

have a connection (open EntityManagerFactory). For each user action we create an EntityManager ... .EntityManager; import javax.persistence.EntityManagerFactory; import javax.persistence.FlushModeType ... *.dat files"); } public static void createDB(String db) {   EntityManagerFactory emf
Forum
2

Filename.odb$ Persisting Issue

if the EntityManagerFactory (or PersistenceManagerFactory if you use JDO) is not closed before ... closing the EM's and EMF, no? If emf this is the only EntityManagerFactory instance in ... static EntityManagerFactory emf = Persistence.createEntityManagerFactory("$objectdb/db/payrollDB