About entity

1-10 of 200Refresh
Manual
115

JPA Entity Fields

Fields of persistable user defined classes (entity classes, embeddable classes and mapped ... and inverse fields) can be used in both entity classes and embeddable classes. However, the last two groups (primary key and version fields) can only be used in entity classes. Primary key fields
Manual
112

Retrieving JPA Entity Objects

of the database. The persistence context serves as a cache of retrieved entity objects. If a requested entity object is not found in the persistence context a new object is constructed and filled with data that is retrieved from the database (or from the L2 cache - if enabled). The new entity object
Manual
109

Working with JPA Entity Objects [2011-04-18]

Entity objects are in-memory instances of entity classes (persistable user defined classes ... requires using entity objects for many operations, including storing, retrieving, updating and deleting database objects. Entity Object Life Cycle The life cycle of entity objects consists of four states
Manual
109

Working with JPA Entity Objects

Entity objects are in-memory instances of entity classes (persistable user defined classes ... requires using entity objects for many operations, including storing, retrieving, updating and deleting database objects. Entity Object Life Cycle The life cycle of entity objects consists of four states
Manual
108

Storing JPA Entity Objects

New entity objects can be stored in the database either explicitly by invoking the persist method ... an instance of the Employee entity class in the database: Employee employee = new Employee("Samuel ... and changes its state to Managed. The new entity object is stored in the database when the transaction
Manual
107

Detached Entity Objects

Detached entity objects are objects in a special state in which they are not managed by any EntityManager but still represent objects in the database. Compared to managed entity objects, detached ... that have been loaded before detachment should be used. Changes to detached entity objects are not stored in
Manual
106

Shared (L2) Entity Cache

Every EntityManager owns a persistence context, which is a collection of all the entity objects ... an entity object that is already managed by the EntityManager returns the existing instance from the persistence context, rather than a new instantiated entity object. The scope of the persistence context
Manual
102

Deleting JPA Entity Objects

Existing entity objects can be deleted from the database either explicitly by invoking the remove ... (); The entity object is physically deleted from the database when the transaction is committed. Embedded objects that are contained in the entity object are also deleted. If the transaction is rolled
Manual
101

Defining a JPA Entity Class [2011-02-11]

To be able to store Point objects in the database using JPA we need to define an entity class. A JPA entity class is a POJO (Plain Old Java Object) class, i.e. an ordinary Java class that is marked ... to serializable classes, which are marked as having the ability to be serialized. The Point Entity
Manual
101

Defining a JPA Entity Class

To be able to store Point objects in the database using JPA we need to define an entity class. A JPA entity class is a POJO (Plain Old Java Object) class, i.e. an ordinary Java class that is marked ... to serializable classes, which are marked as having the ability to be serialized. The Point Entity