About configuration

51-60 of 200Refresh
Manual
8

Storing JPA Entity Objects

setting the ObjectDB configuration or in a JPA portable way, by specifying the cascade-persist XML
Tutorial
8

Step 2: Entity Class and Persistence Unit

entity class will represents guests in the database. We also need to configure JPA by setting a META-INF
Tutorial
8

Step 5: Add a JSP Page

(and the last in this tutorial) is setting the Spring XML configuration.
Tutorial
8

Step 2: Entity Class and Persistence Unit

with a default persistence unit (that will be configured later). If the Finish button is disabled
JDO Doc
8

javax.jdo.PersistenceManagerFactory

. PersistenceManagerFactory instances may be configured and serialized for later use. They may be stored via JNDI and looked up and used later. Any properties configured will be saved and restored ... be configured. If the ConnectionFactory property is set (non-null) then all other Connection properties
JDO Doc
4

getPersistenceManagerFactory()

Static Method javax.jdo.JDOHelper PersistenceManagerFactory getPersistenceManagerFactory() Get the anonymous PersistenceManagerFactory configured via the standard configuration file resource "META-INF/jdoconfig.xml", using the current thread's context class loader to locate the configuration file
JPA Doc
4

javax.persistence.Persistence

: persistenceUnitName - the name of the persistence unit Returns: the factory that creates EntityManagers configured ... of these properties override any values that may have been configured elsewhere. Returns: the factory that creates EntityManagers configured according to the specified persistence unit. Since: JPA 1.0
JDO Doc
3

addInstanceLifecycleListener(listener, classes)

are considered to be configuration methods and can only be called when the PersistenceManagerFactory is configurable (before the first time getPersistenceManager is called). The classes parameter identifies
JDO Doc
3

Constants.PROPERTY_PREFIX_INSTANCE_LIFECYCLE_LISTENER

Static Field javax.jdo.Constants String PROPERTY_PREFIX_INSTANCE_LIFECYCLE_LISTENER Prefix used to configure javax.jdo.listener.InstanceLifecycleListener instances externally. To configure an InstanceLifecycleListener via properties, create a property name with the prefix of this constant
JPA Doc
3

createEntityManagerFactory(persistenceUnitName, properties)

of these properties override any values that may have been configured elsewhere. Returns: the factory that creates EntityManagers configured according to the specified persistence unit. Since: JPA 1.0