About EntityManagerFactory

51-60 of 200Refresh
JPA Doc
4

createEntityManagerFactory(persistenceUnitName, properties)

Static Method javax.persistence.Persistence EntityManagerFactory createEntityManagerFactory(   String persistenceUnitName,   Map properties ) Create and return an EntityManagerFactory for the named persistence unit using the given properties. Parameters: persistenceUnitName - the name
JPA Doc
4

getEntityManagerFactory()

Method javax.persistence.EntityManager EntityManagerFactory getEntityManagerFactory() Return the entity manager factory for the entity manager. Returns: EntityManagerFactory instance Throws: IllegalStateException - if the entity manager has been closed Since: JPA 2.0
JDO Doc
4

getPersistenceManagerFactory(overrides, name, resourceLoader, pmfLoader)

.persistence.EntityManagerFactory cast to a PersistenceManagerFactory. If the name given is null or consists ... javax.persistence.EntityManagerFactory classes Returns: the PersistenceManagerFactory with properties
JPA Doc
4

getTransactionType()

Method javax.persistence.spi.PersistenceUnitInfo PersistenceUnitTransactionType getTransactionType() Returns the transaction type of the entity managers created by the EntityManagerFactory ... : transaction type of the entity managers created by the EntityManagerFactory Since: JPA 1.0
JPA Doc
4

javax.persistence.EntityManager

Since: JPA 1.0 EntityManagerFactory getEntityManagerFactory() Return the entity manager factory for the entity manager. Return the entity manager factory for the entity manager. Returns: EntityManagerFactory
Forum
3

Internal exception when updating date filed (TemporalType.DATE)

GENERATE_PERSONS_COUNT = 1000;         private EntityManagerFactory entityManagerFactory ... ) {             entityManagerFactory = Persistence.createEntityManagerFactory(connectionString);             entityManager = entityManagerFactory.createEntityManager();         }         public void
Forum
2

Connection is closed Caused by: java.io.EOFException

Test {     public static void main(String[] args) {         EntityManagerFactory emf = Persistence ... ) {         EntityManagerFactory emf = Persistence.createEntityManagerFactory(             "objectdb://localhost/test.odb;user ... the EntityManagerFactory.  I have now added a method which I explicitly call  after I am finished with use
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