Notice: this Wiki will be going read only early in 2024 and edits will no longer be 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/Mapping"
< EclipseLink | UserGuide | JPA | Basic JPA Development
(2 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
|eclipselinktype=JPA | |eclipselinktype=JPA | ||
|nativeapi=y | |nativeapi=y | ||
− | | | + | |nativeapis= |
− | *[ | + | * [http://www.eclipse.org/eclipselink/api/latest/org/eclipse/persistence/mappings/package-frame.html mappings] |
|examples=y | |examples=y | ||
|example= | |example= | ||
Line 25: | Line 25: | ||
*[[EclipseLink/UserGuide/JPA/Basic JPA Development/Mapping/Basic Mappings|Basic Mappings]] | *[[EclipseLink/UserGuide/JPA/Basic JPA Development/Mapping/Basic Mappings|Basic Mappings]] | ||
− | *[[EclipseLink/UserGuide/JPA/Basic JPA Development/Mapping/Relationship Mappings|Relationship Mappings | + | *[[EclipseLink/UserGuide/JPA/Basic JPA Development/Mapping/Relationship Mappings|Relationship Mappings]] |
− | + | ||
*[[EclipseLink/UserGuide/JPA/Basic JPA Development/Mapping/Locking|Locking]] | *[[EclipseLink/UserGuide/JPA/Basic JPA Development/Mapping/Locking|Locking]] | ||
Latest revision as of 13:34, 27 October 2011
EclipseLink JPA
EclipseLink | |
Website | |
Download | |
Community | |
Mailing List • Forums • IRC • mattermost | |
Issues | |
Open • Help Wanted • Bug Day | |
Contribute | |
Browse Source |
Native API
Examples
- EclipseLink-ORM.XML
- Map Enum to Coded Values
- Example JPA 2.0 Employee model
- How to use Map key columns to map complex Maps
- How to use derived identifiers to map composite Ids through ManyToOne relationships
- How to map collections of Basic or Embeddable values using an ElementCollection mapping
- How to maintain order in a List relationship using an OrderColumn
- Employee Examples using EclipseLink ORM.XML
- Mapping Selection Criteria
Configuring Mappings
To map entity classes to relational tables you must configure a mapping per persistent field. The following sections describe EclipeLink's JPA mapping types: