Home » Search

About entity

21-30 of 200Refresh
Manual
54

JPA Primary Key

Every entity object that is stored in the database has a primary key. Once assigned, the primary key cannot be modified. It represents the entity object as long as it exists in the database. As ... that is absent from other object oriented databases. Entity Identification Every entity object in
JPA Doc
32

detach(entity)

Method javax.persistence.EntityManager void detach(   Object entity ) Remove the given entity from the persistence context, causing a managed entity to become detached. Unflushed changes made to the entity if any (including removal of the entity), will not be synchronized to the database. Entities
Manual
32

JPA Lifecycle Events

Callback methods are user defined methods that are attached to entity lifecycle events ... methods are methods that are defined within an entity class. For example, the following entity class defines all the supported callback methods with empty implementations: @Entity public static class
JPA Doc
32

lock(entity, lockMode)

Method javax.persistence.EntityManager void lock(   Object entity,   LockModeType lockMode ) Lock an entity instance that is contained in the persistence context with the specified lock mode type. If a pessimistic lock mode type is specified and the entity contains a version attribute
JPA Doc
32

lock(entity, lockMode, properties)

Method javax.persistence.EntityManager void lock(   Object entity,   LockModeType lockMode,   Map properties ) Lock an entity instance that is contained in the persistence context ... is specified and the entity contains a version attribute, the persistence provider must also perform
JPA Doc
32

isLoaded(entity)

Method javax.persistence.spi.ProviderUtil LoadState isLoaded(   Object entity ) If the provider determines that the entity has been provided by itself and that the state of all attributes ... . If the provider determines that the entity has been provided by itself and that not all attributes
JPA Doc
32

isLoadedWithoutReference(entity, attributeName)

Method javax.persistence.spi.ProviderUtil LoadState isLoadedWithoutReference(   Object entity,   String attributeName ) If the provider determines that the entity has been provided by ... . If the provider determines that the entity has been provided by itself and that either entity attributes
JPA Doc
32

javax.persistence.Entity

javax.persistence Annotation Entity Target: Classes Specifies that the class is an entity. This annotation is applied to the entity class. Since: JPA 1.0 Learn how to define and use entity classes in Chapter 2 of the ObjectDB/JPA manual. String name (Optional) The entity name. (Optional) The entity
JPA Doc
32

refresh(entity)

Method javax.persistence.EntityManager void refresh(   Object entity ) Refresh the state of the instance from the database, overwriting changes made to the entity, if any. Parameters: entity - entity instance Throws: IllegalArgumentException - if the instance is not an entity or the entity is not
JPA Doc
32

refresh(entity, lockMode)

Method javax.persistence.EntityManager void refresh(   Object entity,   LockModeType lockMode ) Refresh the state of the instance from the database, overwriting changes made to the entity, if any, and lock it with respect to given lock mode type. If the lock mode type is pessimistic and the entity