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/2.4/schema"

m (New page: {{EclipseLink_TLJPA |Please do not edit this page. Your edits will be overwritten during the next update. Instead, please use Bugzilla to log documentation requests. |info=n |toc=n |catego...)
 
m
Line 6: Line 6:
 
|release=2.4.x
 
|release=2.4.x
 
|title=Java Persistence API (JPA) Extensions Reference for EclipseLink}}
 
|title=Java Persistence API (JPA) Extensions Reference for EclipseLink}}
 +
<span class="metaname">    </span>
 +
 +
{| class="simple oac_no_warn" width="100%"
 +
| align="left" valign="top" | 
 +
| width="185" align="right" valign="bottom" |
 +
{| class="simple oac_no_warn" width="100%"
 +
|
 +
| align="center" valign="top" |
 +
[[Image:Elug_Magnifier.png|Search]][http://www.google.com/cse/home?cx=016171230611334810008:y5kxq4rqd8s&hl=en Search]
 +
| align="center" valign="top" |
 +
&nbsp;&nbsp;&nbsp;[[Image:Elug_guide_icon.png|Contents]][[EclipseLink/UserGuide/JPA/2.4/toc| Contents]]
 +
|}
 +
|}
 +
 +
----
 +
 +
{| width="165"
 +
| align="center" |
 +
[[EclipseLink/UserGuide/JPA/2.4/q_refresh_cache| Previous ]]<span class="previouslink">[[Image:Elug_previous_icon.png|Previous]]</span>
 +
| align="center" |
 +
[[EclipseLink/UserGuide/JPA/2.4/schema001| Next ]][[Image:Elug_next_icon.png|Next]]
 +
|
 +
|}
 +
 +
<span id="sthref571"></span>
 +
 +
[[Image:Elug_draft_icon.png|Warning]]Beta Draft: 2012-06-15
 +
 +
=<span class="secnum">5</span> eclipselink-orm.xml Schema Reference=
 +
 +
You can use EclipseLink's native metadata XML file, <code>eclipselink-orm.xml</code>, to override mappings defined in the JPA configuration file (<code>orm.xml</code>) and to provide extended ORM features.
 +
 +
<br />
 +
 +
{| class="Note oac_no_warn" width="80%" border="1" frame="hsides" rules="groups" cellpadding="3" frame="hsides" rules="groups"
 +
| align="left" |
 +
[[Image:Elug_note_icon.png|Note]] '''Note:'''
 +
 +
Using the <code>eclipselink-orm.xml</code> mapping file enables many EclipseLink advanced features, but it may prevent the persistence unit from being portable to other JPA implementations.
 +
|}
 +
 +
<br />
 +
 +
The <code>eclipselink-orm.xml</code> file defines object-relational mapping metadata for EclipseLink. It is built from the existing <code>orm.xml</code> file which makes it more intuitive, requires minimum configuration, and makes it easy to override.
 +
 +
For more information, see:
 +
 +
* Section 12.2 "XML Overriding Rules" in the JPA Specification
 +
* <code>http://wiki.eclipse.org/EclipseLink/UserGuide/JPA/Basic_JPA_Development/Configuration/JPA/orm.xml</code>
 +
 +
The schema for EclipseLink is <code>eclipselink_orm_X_X.xsd</code> where X_X is the current EclipseLink version number (such as <code>2_4</code> for '''2.4'''). All EclipseLink schemas are available from <code>http://wiki.eclipse.org/EclipseLink/XSDs</code>.
 +
 +
<span id="footerspace"> </span>
 +
 +
----
 +
 +
{| class="simple oac_no_warn" width="100%"
 +
|-
 +
| valign="bottom" |
 +
{| width="165"
 +
|-
 +
|
 +
| align="center" |
 +
[[EclipseLink/UserGuide/JPA/2.4/q_refresh_cache| Previous ]]<span class="previouslink">[[Image:Elug_previous_icon.png|Previous]]</span>
 +
| align="center" |
 +
[[EclipseLink/UserGuide/JPA/2.4/schema001| Next ]][[Image:Elug_next_icon.png|Next]]
 +
|}
 +
| width="34%" align="center" |
 +
[[Image:Eclipselink-logo.gif|150px|EclispeLink]]<br />[[Image:Elug_home_icon.png|EclipseLink logo]] [http://www.eclipse.org/eclipselink/ EclipseLink Home] • [[Image:Elug_pdf.png|PDF]] PDF (coming soon)<br />
 +
| align="right" valign="bottom" |
 +
{| class="simple oac_no_warn" width="225"
 +
|
 +
| align="center" valign="top" |
 +
[[Image:Elug_Magnifier.png|Search]][http://www.google.com/cse/home?cx=016171230611334810008:y5kxq4rqd8s&hl=en Search]
 +
| align="center" valign="top" |
 +
&nbsp;&nbsp;&nbsp;[[Image:Elug_guide_icon.png|Contents]][[EclipseLink/UserGuide/JPA/2.4/toc| Contents]]
 +
|}
 +
|}

Revision as of 13:56, 15 June 2012


SearchSearch

   Contents Contents


Previous Previous

Next Next

WarningBeta Draft: 2012-06-15

5 eclipselink-orm.xml Schema Reference

You can use EclipseLink's native metadata XML file, eclipselink-orm.xml, to override mappings defined in the JPA configuration file (orm.xml) and to provide extended ORM features.


Note Note:

Using the eclipselink-orm.xml mapping file enables many EclipseLink advanced features, but it may prevent the persistence unit from being portable to other JPA implementations.


The eclipselink-orm.xml file defines object-relational mapping metadata for EclipseLink. It is built from the existing orm.xml file which makes it more intuitive, requires minimum configuration, and makes it easy to override.

For more information, see:

The schema for EclipseLink is eclipselink_orm_X_X.xsd where X_X is the current EclipseLink version number (such as 2_4 for 2.4). All EclipseLink schemas are available from http://wiki.eclipse.org/EclipseLink/XSDs.

 


Previous Previous

Next Next

EclispeLink
EclipseLink logo EclipseLink Home • PDF PDF (coming soon)

SearchSearch

   Contents Contents

Back to the top