Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "EclipseLink/UserGuide/JPA/Basic JPA Development/Entities/Ids/Generating and Configuring Entity Identities"
< EclipseLink | UserGuide | JPA | Basic JPA Development
m |
m (→Entity) |
||
Line 1: | Line 1: | ||
{{EclipseLink_UserGuide}} | {{EclipseLink_UserGuide}} | ||
+ | {{EclipseLink_UserGuide | ||
+ | |info=y | ||
+ | |toc=n | ||
+ | |eclipselink=y | ||
+ | |eclipselinktype=JPA}} | ||
=Entity= | =Entity= | ||
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. | ||
Line 20: | Line 25: | ||
|previous=[[EclipseLink/UserGuide/JPA/Basic JPA Development/Mapping|Mapping]] | |previous=[[EclipseLink/UserGuide/JPA/Basic JPA Development/Mapping|Mapping]] | ||
|next=[[EclipseLink/UserGuide/JPA/Basic JPA Development/Mapping/Entity/Id|@Id]] | |next=[[EclipseLink/UserGuide/JPA/Basic JPA Development/Mapping/Entity/Id|@Id]] | ||
− | |up=[[EclipseLink/UserGuide/JPA/Basic JPA Development|Basic JPA Development]]}} | + | |up=[[EclipseLink/UserGuide/JPA/Basic JPA Development|Basic JPA Development]] |
+ | |version=2.2.0 DRAFT}} |
Revision as of 11:23, 12 January 2011
EclipseLink JPA
EclipseLink | |
Website | |
Download | |
Community | |
Mailing List • Forums • IRC • mattermost | |
Issues | |
Open • Help Wanted • Bug Day | |
Contribute | |
Browse Source |
Entity
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.
Mapping | @Id | |
EclipseLink Home
JPA User Guide: Table of Contents, Search |
||
How to contribute to this guide... |