About EntityManagerFactory

51-60 of 200Refresh
Manual
9

Working with JPA Entity Objects

a level 2 shared cache for the EntityManagerFactory as well as other caches as explained in
Tutorial
9

Step 3: Add a Main Class [2018-10-20]

// (create a new database if it doesn't exist yet): EntityManagerFactory emf
Tutorial
9

Step 3: Add a Main Class

connection // (create a new database if it doesn't exist yet): EntityManagerFactory
Tutorial
9

Step 3: Add a Main Class [2011-02-11]

yet): EntityManagerFactory emf =  Persistence.createEntityManagerFactory
Tutorial
9

Step 3: Add a Main Class

yet): EntityManagerFactory emf =  Persistence.createEntityManagerFactory
JPA Doc
8

javax.persistence.spi.PersistenceProvider

class in Java SE environments to create an javax.persistence.EntityManagerFactory. Since: JPA 1.0 EntityManagerFactory createContainerEntityManagerFactory( PersistenceUnitInfo info, Map map) Called by the container when an EntityManagerFactory is to be created. Called by the container
JPA Doc
7

javax.persistence.Persistence

Bootstrap class that is used to obtain an EntityManagerFactory in Java SE environments. The Persistence ... Persistence in Chapter 3 of the ObjectDB/JPA manual. EntityManagerFactory createEntityManagerFactory(String persistenceUnitName) Create and return an EntityManagerFactory for the named persistence unit
JPA Doc
5

javax.persistence.spi.PersistenceUnitInfo

by the persistence provider when creating an javax.persistence.EntityManagerFactory. Since: JPA 1.0 ... () Returns the transaction type of the entity managers created by the EntityManagerFactory. Returns the transaction type of the entity managers created by the EntityManagerFactory. The transaction type
JPA Doc
4

createContainerEntityManagerFactory(info, map)

Method javax.persistence.spi.PersistenceProvider EntityManagerFactory createContainerEntityManagerFactory(   PersistenceUnitInfo info,   Map map ) Called by the container when an EntityManagerFactory ... : EntityManagerFactory for the persistence unit specified by the metadata Since: JPA 1.0
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