About entities

21-30 of 200Refresh
Manual
213

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
211

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
211

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
208

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
207

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
207

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
Tutorial
207

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 ... .Date; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; @Entity public class Guest implements Serializable { private static final long
Tutorial
206

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 ... : package tutorial; import java.io.Serializable; import javax.persistence.*; @Entity public ... should represent Point objects in the database. Besides the @Entity annotation and the id field
Tutorial
206

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 java.sql.Date; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; @Entity public class Guest implements Serializable
Tutorial
206

Step 2: Define a JPA Entity Class [2011-02-11]

To store objects in an ObjectDB database using JPA we need to define an entity class: Open the [New ... : package tutorial; import java.io.Serializable; import javax.persistence.*; @Entity public ... should represent Point objects in the database. Besides the @Entity annotation and the id field