About EntityManagerFactory

51-60 of 200Refresh
JPA Doc
4

createEntityManagerFactory(emName, map)

Method javax.persistence.spi.PersistenceProvider EntityManagerFactory createEntityManagerFactory(   String emName,   Map map ) Called by Persistence class when an EntityManagerFactory ... (and may be null if no properties are specified). Returns: EntityManagerFactory for the persistence
JDO Doc
4

javax.jdo.JDOHelper

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

createEntityManagerFactory(persistenceUnitName)

Static Method javax.persistence.Persistence EntityManagerFactory createEntityManagerFactory(   String persistenceUnitName ) Create and return an EntityManagerFactory for the named persistence unit. Parameters: persistenceUnitName - the name of the persistence unit Returns: the factory that creates
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