Skip to main content

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.

Jump to: navigation, search

Difference between revisions of "EclipseLink/UserGuide/JPA/Basic JPA Development/Mapping"

m
 
(17 intermediate revisions by 2 users not shown)
Line 3: Line 3:
 
|toc=n
 
|toc=n
 
|eclipselink=y
 
|eclipselink=y
|eclipselinktype=JPA}}
+
|eclipselinktype=JPA
=Mapping=
+
|nativeapi=y
To map entity classes to relational tables you must configure a mapping per persistent field.
+
|nativeapis=
 +
* [http://www.eclipse.org/eclipselink/api/latest/org/eclipse/persistence/mappings/package-frame.html mappings]
 +
|examples=y
 +
|example=
 +
*[[EclipseLink/Examples/JPA/EclipseLink-ORM.XML|EclipseLink-ORM.XML]]
 +
*[[EclipseLink/Examples/JPA/EnumToCode|Map Enum to Coded Values]]
 +
*[[EclipseLink/Examples/JPA/2.0/Employee|Example JPA 2.0 Employee model]]
 +
*[[EclipseLink/Examples/JPA/2.0/MapKeyColumns|How to use Map key columns to map complex Maps]]
 +
*[[EclipseLink/Examples/JPA/2.0/DerivedIdentifiers|How to use derived identifiers to map composite Ids through ManyToOne relationships]]
 +
*[[EclipseLink/Examples/JPA/2.0/ElementCollections|How to map collections of Basic or Embeddable values using an ElementCollection mapping]]
 +
*[[EclipseLink/Examples/JPA/2.0/OrderColumns|How to maintain order in a List relationship using an OrderColumn]]
 +
*[[EclipseLink/Examples/JPA/EmployeeXML|Employee Examples using EclipseLink ORM.XML]]
 +
*[[EclipseLink/Examples/JPA/MappingSelectionCriteria|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:
  
*[[EclipseLink/UserGuide/JPA/Basic JPA Development/Mapping/Entity|Entity]]
+
*[[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]]
 
  
 
{{EclipseLink_JPA
 
{{EclipseLink_JPA
|previous=[[EclipseLink/UserGuide/JPA/Basic JPA Development/Configuration/JPA/Overriding and Merging|Overriding and Merging]]
+
|previous=[[EclipseLink/UserGuide/JPA/Basic_JPA_Development/Entities/Embeddable|@Embeddable]]
|next=[[EclipseLink/UserGuide/JPA/Basic JPA Development/Mapping/Entity|Entity]]
+
|next=[[EclipseLink/UserGuide/JPA/Basic_JPA_Development/Mapping/Basic_Mappings|Basic Mappings]]  
 
|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}}
 
|version=2.2.0 DRAFT}}

Latest revision as of 13:34, 27 October 2011

EclipseLink JPA


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:

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

Back to the top