About Persistence Context

41-50 of 200Refresh
JDO Doc
15

javax.jdo.JDOHelper

whether the instance is persistent, transactional, dirty, new, deleted, or detached ... with the parameter instance. Persistent instances of PersistenceCapable classes have a JDO identity ... from the same JDO implementation to locate a persistent instance with the same data store identity
Manual
15

Detached Entity Objects

The following operations clear the entire EntityManager's persistence context and detach all managed ... method, which clears an EntityManager's persistence context. Rolling back a transaction - either by ... ). Retrieval by navigation from detached objects is not supported, so only persistent fields
JPA Doc
14

javax.persistence.spi.PersistenceUnitInfo

javax.persistence.spi Interface PersistenceUnitInfo Interface implemented by the container and used by the persistence provider when creating an javax.persistence.EntityManagerFactory. Since: JPA 1.0 ... are only transformed once within the same classloading scope, regardless of how many persistence units
Tutorial
13

Step 2: Define a JPA Entity Class

code: package guest; import java.io.Serializable; import java.sql.Date; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; @Entity public ... ; // Persistent Fields: @Id @GeneratedValue Long id; private String name; private
JPA Doc
13

javax.persistence.spi.PersistenceProvider

javax.persistence.spi Interface PersistenceProvider Interface implemented by the persistence provider. It is invoked by the container in Java EE environments and by the javax.persistence.Persistence class in Java SE environments to create an javax.persistence.EntityManagerFactory. Since: JPA 1.0
JPA Doc
13

javax.persistence.PersistenceUnitUtil

javax.persistence Interface PersistenceUnitUtil Superinterfaces: PersistenceUtil Utility interface 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
JPA Doc
13

javax.persistence.GenerationType

javax.persistence Enum GenerationType java.lang.Object java.lang.Enumpersistence.GenerationType> javax.persistence.GenerationType Implemented Interfaces: Serializable ... /JPA manual. GenerationType AUTO Indicates that the persistence provider should pick an appropriate
JDO Doc
13

javax.jdo.annotations.Persistent

javax.jdo.annotations Annotation Persistent Target: Fields (including property get methods) Annotation for defining the persistence of a member. This corresponds to the xml elements "field ... persistent but in the non-embedded instances the member is persistent. Note that it is not portable
JPA Doc
13

javax.persistence.TypedQuery

javax.persistence Interface TypedQuery Superinterfaces: Query Interface used to control ... deleted Throws: IllegalStateException - if called for a Java Persistence query language SELECT statement ... Throws: IllegalStateException - if the query is found not to be a Java Persistence query language
JPA Doc
13

javax.persistence.OrderColumn

javax.persistence Annotation OrderColumn Target: Fields (including property get methods) Specifies a column that is used to maintain the persistent order of a list. The persistence provider is responsible for maintaining the order upon retrieval and in the database. The persistence provider