About entities

1-10 of 200Refresh
Manual
144

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
140

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
133

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
132

Updating JPA Entity Objects

Modifying existing entity objects that are stored in the database is based on transparent ... Once an entity object is retrieved from the database (no matter which way) it can simply be modified in memory ... (); The entity object is physically updated in the database when the transaction is committed
Manual
130

Entity Management Settings

The <entities> configuration element specifies front end settings that are relevant on the client side and in embedded mode. The default configuration file contains the following <entities> element: <entities>
Tutorial
128

Step 2: Entity Class and Persistence Unit

To store objects in an ObjectDB database using JPA we need to define an entity class: Open the [New Entity Class] dialog box, e.g. by right clicking the project node (in the [Projects] window) and selecting New > Entity Class... (or New > Other... > Persistence > Entity Class and clicking
Tutorial
128

Step 2: Entity Class and Persistence Unit

To store objects in an ObjectDB database using JPA we need to define an entity class: Open the [New Entity Class] dialog box, e.g. by right clicking the project node (in the [Projects] window) and selecting New > Entity Class... (or New > Other... > Persistence > Entity Class and clicking
Tutorial
125

Step 2: Entity Class and Persistence Unit

To store objects in an ObjectDB database using JPA we need to define an entity class: Right click ... - use exactly that case sensitive class name. Click Finish to create the new entity class. A new class ... .persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; @Entity
Tutorial
124

Step 2: Define a JPA Entity Class

To store objects in an ObjectDB database using JPA we need to define an entity class: Open the [New ... .Serializable; import javax.persistence.*; @Entity public class Point implements Serializable ... . Besides the @Entity annotation and the id field (and its annotations) - the Point class
Tutorial
124

Step 2: Define a JPA Entity Class

To store objects in an ObjectDB database using JPA we need to define an entity class: Open the [New ... .Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; @Entity public ... in the database. Besides the @Entity annotation and the id field (and its annotations) - the Guest