About persist

manual

Storing JPA Entity Objects

Explains how to use JPA to store (persist) entity objects in the database.... in the database either explicitly by invoking the persist persist(entity) EntityManager's method Make an instance managed and ...

 
manual

JPA Persistence Unit

Explains how to define a JPA persistence unit in the persistence.xml file. A JPA Persistence Unit is a logical grouping of user defined persistable classes (entity classes, embeddable classes and mapped superclasses) with related settings. Defining a persistence unit is optional when using ObjectDB, but required by JPA. ...

 
manual

JPA Persistable Types

Explains how JPA manages types, including entity classes, embeddable classes, primitive types, wrappers, string, date, enum, collections and maps.... . ORDINAL EnumType.ORDINAL enum constant Persist enumerated type property or field as an integer. See JavaDoc ... . STRING EnumType.STRING enum constant Persist enumerated type property or field as a string. See JavaDoc Reference ...

 
manual

Working with JPA Entity Objects

Explains the entity object lifecycle and the persistence context.... persisted to the database via an EntityManager’s persist persist(entity) EntityManager's method Make an instance managed and ...

 
manual

Database Connection using JPA

Describes the main JPA interfaces: EntityManagerFactory, EntityManager and EntityTransaction. Working with the Java Persistence API (JPA) consists of using the following interfaces: This page covers the following topics: Overview EntityManagerFactory EntityManager EntityTransac ...

 
page

What is the Java Persistence API (JPA)?

The Java Persistence API (JPA) is a standard API for accessing databases from within Java applications. The main advantage of JPA over JDBC (the older Java API for interacting with databases) is that in JPA data is represented by classes and objects rat ...

 
tutorial

Step 2: Entity Class and Persistence Unit

Explains how to define a JPA entity class and a persistence unit (persistence.xml) in a NetBeans Spring MVC web application project. 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 ...

 
tutorial

Step 2: Entity Class and Persistence Unit

Explains how to define a JPA entity class and a persistence unit (persistence.xml) in a NetBeans Java EE 6 web application. 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 Clas ...

 
tutorial

Step 2: Entity Class and Persistence Unit

Explains how to define a JPA entity class and a persistence unit (persistence.xml) in an Eclipse Spring MVC web application project. To store objects in an ObjectDB database using JPA we need to define an entity class: Right click the project node (in the [Package Explorer] window), select  New > Source Folder , enter src/main/java as Folder ...

 
tutorial

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 Java Class] dialog box, e.g. by right clicking the project node (in the [Package Explorer] window) and selecting  New > ...