About EntityManagerFactory

61-70 of 200Refresh
JDO Doc
2

javax.jdo.PersistenceManagerFactory

semantics as the same-named property in JSR-220 EntityManagerFactory. Parameters: name
JPA Doc
2

javax.persistence.PersistenceUnit

javax.persistence Annotation PersistenceUnit Target: Classes and fields (including property get methods) Expresses a dependency on an EntityManagerFactory and its associated persistence unit. Since: JPA 1.0 String name (Optional) The name by which the entity manager factory is to be accessed in
JPA Doc
2

javax.persistence.spi.PersistenceUnitTransactionType

> Specifies whether entity managers created by the javax.persistence.EntityManagerFactory will be JTA or
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