Internal Website Search

21-30 of 200 resultsRefresh

Obtaining a JPA Database Connection

> instance. JPA requires the definition of a persistence-unit">persistence unit in an XML file in order to be able to generate an EntityManagerFactory. But when using ObjectDB you can either define a standard persistence unit in an XML file or

javax.persistence.PersistenceUnitUtil

the application and the persistence provider managing the persistence unit. The methods of this interface ... for this persistence unit or on new entity instances. persistence unit. This method can be used to determine

javax.persistence.EntityManagerFactory

="description"> Interface used to interact with the entity manager factory for the persistence unit ... to the metamodel of the persistence unit. persistence unit.

JPA Named Queries

to the most relevant entity class. But since the scope of named queries is the entire persistence unit ... >One of the reasons that JPA requires the persistence-unit#managed_persistable_classes">listing of managed classes in a persistence-unit">persistence unit

javax.persistence.spi.PersistenceProvider

> EntityManagerFactory for the persistence unit specified by the metadata emName - the name of the persistence unit EntityManagerFactory for the persistence unit, or null

javax.persistence.SharedCacheMode

must use a second-level cache for the persistence unit. Corresponds to the value of the Caching is disabled for the persistence unit. Caching is disabled for the persistence unit

javax.persistence.PersistenceUnit

">EntityManagerFactory and its associated persistence unit. (Optional) The name of the persistence unit as defined in ... class="description"> (Optional) The name of the persistence unit as defined in

javax.persistence.PersistenceContext

(Optional) The name of the persistence unit as ... ="details"> (Optional) The name of the persistence unit as defined ... > element is specified, the persistence unit for the entity manager that is accessible in JNDI

createEntityManagerFactory(persistenceUnitName, properties)

class="description"> Create and return an EntityManagerFactory for the named persistence unit ... > persistenceUnitName - the name of the persistence unit ... > the factory that creates EntityManagers configured according to the specified persistence unit

createEntityManagerFactory(persistenceUnitName)

and return an EntityManagerFactory for the named persistence unit. - the name of the persistence unit Returns ... to the specified persistence unit Since: JPA 1.0