About EntityManagerFactory

61-70 of 200Refresh
JDO Doc
3

javax.jdo.PersistenceManagerFactory

semantics as the same-named property in JSR-220 EntityManagerFactory. Parameters: name
Forum
3

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
3

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
3

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
3

Multi-tenant capability with hierarchies

the EntityManagerFactory creation to accept a parameter, if you want to open multiple databases, but currently ... because the @Transactional uses the entityManagerFactory bean which I don't use. public EntityManager ... to create the entityManagerFactory bean for startup or else I am getting an error "Caused by: org
Forum
3

Cannot save or update entity on Spring App

(entityManagerFactory().getNativeEntityManagerFactory()); transactionManager.afterPropertiesSet ... LocalContainerEntityManagerFactoryBean entityManagerFactory() throws ClassNotFoundException ... { // Injected database connection: @PersistenceUnit(unitName="pu") EntityManagerFactory
Forum
3

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

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

@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