About EntityManagerFactory

51-60 of 200Refresh
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
JDO Doc
4

javax.jdo.JDOEntityManager

See Also: setDetachAllOnCommit(boolean) EntityManagerFactory getEntityManagerFactory() Return the entity ... . Returns: EntityManagerFactory instance Throws: IllegalStateException - if the entity manager
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
3

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
JPA Doc
3

javax.persistence.spi.PersistenceUnitTransactionType

> Specifies whether entity managers created by the javax.persistence.EntityManagerFactory will be JTA or
JDO Doc
3

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
JPA Doc
3

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