Jump to: navigation, search

Difference between revisions of "EclipseLink/UserGuide/JPA/Basic JPA Development/Entities/Creating and Configuring Entities"

Line 16: Line 16:
 
}}
 
}}
  
= Creating and Configuring Entities =
+
= Configuring Entities and Mappings=
  
 
Every entity must have a persistent identity, which is an equivalent of a primary key in a database table that stores the entity state.  
 
Every entity must have a persistent identity, which is an equivalent of a primary key in a database table that stores the entity state.  

Revision as of 13:13, 8 April 2011

EclipseLink JPA


Configuring Entities and Mappings

Every entity must have a persistent identity, which is an equivalent of a primary key in a database table that stores the entity state.

By default, the EclipseLink persistence provider assumes that each entity has at least one field or property that serves as a primary key.

You can generate and/or configure the identity of your entities by using the following annotations:

You can also use these annotations to fine-tune how your database maintains the identity of your entities.



Eclipselink-logo.gif
Version: 2.2.0 DRAFT
Other versions...