About persistence unit

11-20 of 200Refresh
JPA Doc
53

javax.persistence.spi.PersistenceUnitInfo

are only transformed once within the same classloading scope, regardless of how many persistence units ... the root of the persistence unit that have not been explicitly listed are to be included in the set of managed classes. Returns whether classes in the root of the persistence unit that have not
JPA Doc
47

javax.persistence.EntityManager

instance is defined by a persistence unit. A persistence unit defines the set of all classes ... of the persistence unit. Return an instance of Metamodel interface for access to the metamodel of the persistence unit. Returns: Metamodel instance Throws: IllegalStateException - if the entity manager
JPA Doc
45

javax.persistence.PersistenceUnitUtil

between the application and the persistence provider managing the persistence unit. The methods ... for this persistence unit or on new entity instances. Since: JPA 2.0 Object getIdentifier(Object ... ) Determine the load state of an entity belonging to the persistence unit. Determine the load state
JPA Doc
44

javax.persistence.spi.PersistenceProvider

". Returns: EntityManagerFactory for the persistence unit specified by the metadata Since: JPA 1.0 ... is to be created. Parameters: emName - the name of the persistence unit map - a Map of properties ... for the persistence unit, or null if the provider is not the right provider Since: JPA 1.0 ProviderUtil
JPA Doc
44

javax.persistence.EntityManagerFactory

factory for the persistence unit. When the application has finished using the entity manager ... an instance of Metamodel interface for access to the metamodel of the persistence unit. Return an instance of Metamodel interface for access to the metamodel of the persistence unit. Returns: Metamodel
JPA Doc
44

javax.persistence.PersistenceContext

of the persistence unit as defined in the persistence.xml file. (Optional) The name of the persistence unit as defined in the persistence.xml file. If the unitName element is specified, the persistence unit ... javax.persistence Annotation PersistenceContext Target: Classes and fields (including property
JPA Doc
44

javax.persistence.PersistenceUnit

get methods) Expresses a dependency on an EntityManagerFactory and its associated persistence unit ... ) The name of the persistence unit as defined in the persistence.xml file. (Optional) The name of the persistence unit as defined in the persistence.xml file. If specified, the persistence unit
JPA Doc
43

createEntityManagerFactory(persistenceUnitName)

(   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 EntityManagers configured according to the specified persistence unit Since: JPA 1.0
JPA Doc
43

createEntityManagerFactory(persistenceUnitName, properties)

persistence unit using the given properties. Parameters: persistenceUnitName - the name of the persistence unit properties - Additional properties to use when creating the factory. The values ... that creates EntityManagers configured according to the specified persistence unit. Since: JPA 1.0
JPA Doc
41

javax.persistence.NamedQuery

javax.persistence Annotation NamedQuery Target: Classes Specifies a static, named query in the Java Persistence query language. Query names are scoped to the persistence unit. The NamedQuery ... of a named query in the Java Persistence query language: @NamedQuery( name