blob: b56a55aef9f2f51c24b0e3da0f2d7effc4e731fe [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<title>List of Examples | EclipseLink 2.7 Understanding EclipseLink</title>
<meta name="generator" content="Oracle DARB XHTML Converter (Mode = document) - Version 1.0.22 Build 1" />
<meta name="date" content="2014-06-10T10:35:15Z" />
<meta name="robots" content="noarchive" />
<meta name="doctitle" content="List of Examples" />
<meta name="relnum" content="Release 2.7" />
<link rel="stylesheet" type="text/css" href="../../dcommon/style.css" media="screen" />
<link rel="copyright" href="../../dcommon/html/cpyr.htm" title="Copyright" type="text/html" />
<link rel="start" href="../../index.htm" title="Home" type="text/html" />
<link rel="contents" href="toc.htm" title="Contents" type="text/html" />
<link rel="prev" href="toc.htm" title="Previous" type="text/html" />
<link rel="next" href="title_eclipselink.htm" title="Next" type="text/html" />
<!-- START: Disqus --><script type="text/javascript"> var disqus_developer = 0; </script><!-- END: Disqus --><!-- START: Sharethis --><script type="text/javascript">var switchTo5x=true;</script><script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script><script type="text/javascript" src="http://s.sharethis.com/loader.js"></script> <!-- END: Sharethis --></head>
<body bgcolor="#FFFFFF"><iframe id="docheader" frameborder="0" framemargin="0" scrolling="no" src="../../dcommon/header.html"></iframe><script src="http://www.google.com/jsapi" type="text/javascript"></script><script type="text/javascript"> google.load('search', '1', {language : 'en'}); google.setOnLoadCallback(function() { var customSearchOptions = {}; var googleAnalyticsOptions = {}; googleAnalyticsOptions['queryParameter'] = 'q'; googleAnalyticsOptions['categoryParameter'] = ''; customSearchOptions['googleAnalyticsOptions'] = googleAnalyticsOptions; var customSearchControl = new google.search.CustomSearchControl( '016171230611334810008:enkkfjmsqju', customSearchOptions); customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET); var options = new google.search.DrawOptions(); options.setSearchFormRoot('cse-search-form'); customSearchControl.draw('cse', options); }, true);</script><link rel="stylesheet" href="http://www.google.com/cse/style/look/default.css" type="text/css" /><div id="cse" style="width:100%;"></div>
<div class="header"><a id="top" name="top"></a>
<table class="simple oac_no_warn" summary="" cellspacing="0" cellpadding="0" width="100%">
<tr>
<td align="left" valign="top"><font face="helvetica, arial, sans-serif"><b>EclipseLink Solutions Guide for EclipseLink</b><br />
Release 2.7</div></td>
<td valign="bottom" align="right" width="144">
<table class="simple oac_no_warn" summary="" cellspacing="0" cellpadding="0" width="100%">
<tr>
<td>&nbsp;</td>
<td align="center" valign="top"><a href="toc.htm"><img src="../../dcommon/images/contents.png" alt="Go To Table Of Contents" border="0" height="16" width="16" /><br />
</td><td>&nbsp;</td><td align="center"><a href="../../" target="_top" class="external text" title="Search" rel="nofollow"><img src="../../dcommon/images/search.png" alt="Search" style="border:0;" /><br /><span class="mini"></span></a></td><td>&nbsp;</td><td align="center"><a href="../eclipselink_otlcg.pdf" title="PDF" target="_blank"><img src="../../dcommon/images/pdf_icon.png" style="padding-right:5px;border:0" alt="PDF"></a></td>
</tr>
</table>
</td>
</tr>
</table>
<hr />
<table class="navigation simple oac_no_warn" summary="" cellspacing="0" cellpadding="0" width="100" align="center">
<tr>
<td align="center"><a href="toc.htm"><img src="../../dcommon/images/larrow.png" alt="Previous" border="0" height="16" width="16" /></a></td>
<td align="center"><a href="title_eclipselink.htm"><img src="../../dcommon/images/rarrow.png" alt="Next" border="0" height="16" width="16" /></a></td>
<td>&nbsp;</td>
</tr>
</table>
</div>
<!-- class="header" -->
<div class="ind"><!-- End Header -->
<h1><font face="arial, helvetica, sans-serif">List of Examples</font></h1>
<ul style="list-style-type:none">
<li><a href="tlandwls002.htm#BABCFFHC">3-1 persistence.xml File With JNDI Data Source Using JTA</a></li>
<li><a href="tlandwls002.htm#BABDAEFC">3-2 JDBC Data Source Defined in the name-jdbc.xml File</a></li>
<li><a href="tlandwls002.htm#BABCJEDI">3-3 JDBC Module Defined in the weblogic-application.xml File</a></li>
<li><a href="tlandwls002.htm#BABFIHHE">3-4 JTA Data Source Definition in the persistence.xml File</a></li>
<li><a href="tlandwls002.htm#BABHFADF">3-5 non-JTA Data Source Definition in the persistence.xml File</a></li>
<li><a href="tlandwls002.htm#CHDDDDIE">3-6 Server Domain config.xml File</a></li>
<li><a href="tlandgs002.htm#CIHJGIEF">4-1 Sample persistence.xml File</a></li>
<li><a href="websphere002.htm#CEGCBJCA">6-1 Sample persistence.xml for a container-managed persistence unit</a></li>
<li><a href="websphere002.htm#CEGBBBJE">6-2 Sample persistence.xml for an application-managed persistence unit</a></li>
<li><a href="migrhib002.htm#BGBJIHJB">8-1 Sample Hibernate Entity Annotation</a></li>
<li><a href="migrhib002.htm#BGBHCBDG">8-2 Custom Generator for Sequence Values</a></li>
<li><a href="migrhib002.htm#BGBBIHAD">8-3 Persistence File for an Application that Uses Hibernate</a></li>
<li><a href="migrhib002.htm#BGBHEIEJ">8-4 Persistence File Modified for EclipseLink</a></li>
<li><a href="usingmultipledbs001.htm#CIHFBBDJ">9-1 Using Multiple Databases</a></li>
<li><a href="usingmultipledbs002.htm#CIHHAGCG">9-2 The persistence.xml File for a Composite Persistence Unit</a></li>
<li><a href="extensible001.htm#BABJBFGB">12-1 Entity Class that Uses Property Access</a></li>
<li><a href="extensible001.htm#CIADHIHE">12-2 Virtual Access Using Default get and set Method Names</a></li>
<li><a href="extensible001.htm#CIAHGIEJ">12-3 Overriding get and set Methods</a></li>
<li><a href="extensible001.htm#CIADJCIB">12-4 Using Property Access</a></li>
<li><a href="extensible002.htm#CIAHDEGG">12-5 A Base Class for Extensible Classes</a></li>
<li><a href="extensible002.htm#CIAECFAH">12-6 An Extensible Customer Class</a></li>
<li><a href="extensible002.htm#CIAGABCC">12-7 A Nonextensible Address Class</a></li>
<li><a href="extensible002.htm#CIAEEBIG">12-8 An Extensible PhoneNumber Class</a></li>
<li><a href="extensible002.htm#CIAJHHAJ">12-9 Defining Virtual Properties for Tenant 1</a></li>
<li><a href="extensible002.htm#CIAIIDAD">12-10 Tenant 1 Code to Provide the Data Associated with Virtual Properties</a></li>
<li><a href="extensible002.htm#CIAECIAH">12-11 XML Output from the Customer Class for Tenant 1</a></li>
<li><a href="extensible002.htm#CIAGBEGJ">12-12 Defining Virtual Properties for Tenant 2</a></li>
<li><a href="extensible002.htm#CIACHCHF">12-13 Tenant 2 Code to Provide the Data Associated with Virtual Properties</a></li>
<li><a href="extensible002.htm#CIAGDDIG">12-14 XML Output from the Customer Class for Tenant 2</a></li>
<li><a href="jpatoxml002.htm#BEIJFCEG">15-1 Employee Entity</a></li>
<li><a href="jpatoxml002.htm#BEIEGBBE">15-2 Address Entity</a></li>
<li><a href="jpatoxml002.htm#BEIEEFBA">15-3 PhoneNumber Entity</a></li>
<li><a href="jpatoxml002.htm#BEIHHJEA">15-4 Department Entity</a></li>
<li><a href="jpatoxml002.htm#BEIDFDDJ">15-5 Employee Entity with Compound Primary Keys</a></li>
<li><a href="jpatoxml002.htm#BEIFBGAG">15-6 PhoneNumber Entity</a></li>
<li><a href="jpatoxml002.htm#BEIDAGDJ">15-7 Employee Entity as Target Object</a></li>
<li><a href="jpatoxml002.htm#BEIGJACE">15-8 PhoneNumber Class as Source Object</a></li>
<li><a href="jpatoxml002.htm#BEIFCHBH">15-9 PhoneNumber Customizer with Updated Key Mappings</a></li>
<li><a href="jpatoxml003.htm#BEICBDBC">15-10 Example XML Schema</a></li>
<li><a href="jpatoxml003.htm#BEIHFEHF">15-11 Customer Object with Mapped id Property</a></li>
<li><a href="jpatoxml003.htm#BEICFEDE">15-12 Mapping id as an Attribute in OXM Metadata Format</a></li>
<li><a href="jpatoxml003.htm#BEIGFCJG">15-13 PhoneNumber Object with Mapped number Property</a></li>
<li><a href="jpatoxml003.htm#BEIECBDG">15-14 Mapping number as an Attribute in OXM Metadata Format</a></li>
<li><a href="jpatoxml003.htm#BEIFIJIH">15-15 Customer Object Mapping Values to a Simple Sequence</a></li>
<li><a href="jpatoxml003.htm#BEIIHFFE">15-16 Mapping Sequential Attributes in OXM Metadata Format</a></li>
<li><a href="jpatoxml003.htm#BEIBCIDB">15-17 Customer Object Mapping Properties to Sub-elements</a></li>
<li><a href="jpatoxml003.htm#BEIEADBI">15-18 Mapping Attributes as Sub-elements in OXM Metadata Format</a></li>
<li><a href="jpatoxml003.htm#BEICHICJ">15-19 Customer Object Mapping Values by Position</a></li>
<li><a href="jpatoxml004.htm#BEIDBECD">15-20 Updating XML Binding Information in the Mapping File</a></li>
<li><a href="jpatoxml005.htm#BEIIBGBB">15-21</a></li>
<li><a href="jpatoxml005.htm#BEIHAHJF">15-22 Customer Object Mapping to an Attribute Value</a></li>
<li><a href="jpatoxml005.htm#BEIHAIHA">15-23 Address Object Mapping to an Attribute Value</a></li>
<li><a href="jpatoxml005.htm#BEIDDBJA">15-24 PhoneNumber Object Mapping to an Attribute Value</a></li>
<li><a href="jpatoxml005.htm#BEICAHDH">15-25 XML Node with Self-Mapped Address Element</a></li>
<li><a href="jpatoxml006.htm#BEIJDEFA">15-26 Specifying the Input Stream and Creating the DynamicJAXBContext</a></li>
<li><a href="jpatoxml006.htm#BEIBCJFF">15-27 Sample XML Schema Document</a></li>
<li><a href="jpatoxml006.htm#BEIJBFAG">15-28 customer.xsd</a></li>
<li><a href="jpatoxml006.htm#BEIDIAJB">15-29 address.xsd</a></li>
<li><a href="jpatoxml006.htm#BEIBCJAB">15-30 Implementing an EntityResolver</a></li>
<li><a href="jpatoxml006.htm#BEIHGJAA">15-31 Passing in the Entityresolver</a></li>
<li><a href="jpatoxml006.htm#sthref129">15-32 Creating the Dynamic Entity</a></li>
<li><a href="jpatoxml006.htm#sthref131">15-33 Standard Dynamic JAXB Marshaller</a></li>
<li><a href="jpatoxml006.htm#BEIDBCBF">15-34 Updated XML Document Showing &lt;address&gt; Element and Its Attributes</a></li>
<li><a href="jpatoxml006.htm#sthref133">15-35 Standard Dynamic JAXB Unmarshaller</a></li>
<li><a href="jpatoxml006.htm#BEIDDBCC">15-36</a></li>
<li><a href="json002.htm#CHDEDEFA">16-1 Marshalling and Unmarshalling</a></li>
<li><a href="json002.htm#CHDCEFJJ">16-2 Using a Map</a></li>
<li><a href="json002.htm#CHDFHBDA">16-3 Using MarshallerProperties and UnarshallerProperties</a></li>
<li><a href="json002.htm#CHDJCEEE">16-4 Using Basic JSON Binding</a></li>
<li><a href="json002.htm#CHDEFJCC">16-5 Using External Bindings</a></li>
<li><a href="json002.htm#CHDDAECA">16-6 Using JSON to Bootstrap a JAXBContext</a></li>
<li><a href="json002.htm#BABEFCED">16-7 Using JSON Data Types</a></li>
<li><a href="json002.htm#CHDICAHE">16-8 Using a Prefix</a></li>
<li><a href="json002.htm#CHDIIHGC">16-9 Setting a Prefix in a Map</a></li>
<li><a href="json002.htm#CHDEAEJA">16-10 Marshalling no Root Element Documents</a></li>
<li><a href="json002.htm#CHDJAJBJ">16-11 Unmarshalling no Root Element Documents</a></li>
<li><a href="json002.htm#CHDCEBBJ">16-12 Using Namesapces</a></li>
<li><a href="json002.htm#CHDDJCJA">16-13 Marshalling Empty Collections</a></li>
<li><a href="json002.htm#CHDBHJHF">16-14 Using @XmlAttributes</a></li>
<li><a href="json002.htm#CHDFFIIH">16-15 Using a value Wrapper</a></li>
<li><a href="json002.htm#CHDCFBHH">16-16 Customizing the Name of the Value Wrapper</a></li>
<li><a href="json002.htm#CHDEDDAA">16-17 Using a Map</a></li>
<li><a href="testingjpa001.htm#sthref138">17-1 Changing transaction type and defining connection information</a></li>
<li><a href="testingjpa002.htm#CHDFFCIE">17-2 A persistence.xml File Specifying the Java SE Platform Configuration</a></li>
<li><a href="testingjpa003.htm#CHDEHGEG">17-3 A persistence.xml File Specifying the Java SE Platform Configuration, for use with a Property Map</a></li>
<li><a href="testingjpa003.htm#CHDDHBCC">17-4 Sample Configuration</a></li>
<li><a href="performance001.htm#CHDBDCBC">18-1 Using the @Cache Annotation</a></li>
<li><a href="performance001.htm#CHDBICAF">18-2 Enabling JoinFetching</a></li>
<li><a href="performance001.htm#CHDJDDFA">18-3 Enabling Change Tracking</a></li>
<li><a href="performance001.htm#BBAHGDFA">18-4 Enabling Serialized Object Policy Using Annotations</a></li>
<li><a href="performance001.htm#BBABHJJI">18-5 Enabling Serialized Object Policy Using eclipselink-orm.xml</a></li>
<li><a href="performance001.htm#BBAGBGFB">18-6 Enabling Serialized Object Policy in a Customizer</a></li>
<li><a href="performance002.htm#CHDBGFGG">18-7 Performance Profiler Output</a></li>
<li><a href="qcn002.htm#CHDECAAF">20-1 Sample persistence.xml File</a></li>
<li><a href="qcn002.htm#CHDJGCBF">20-2 Defining the @Version Annotation</a></li>
<li><a href="nonrelational_db002.htm#BABBBHHD">21-1 Using @NoSql Annotation with JSON</a></li>
<li><a href="nonrelational_db002.htm#sthref229">21-2 Sample Mappings</a></li>
<li><a href="nonrelational_db002.htm#BABFACAI">21-3 Using @Version</a></li>
<li><a href="nonrelational_db002.htm#sthref231">21-4 Oracle NoSQL JPQL Examples</a></li>
<li><a href="nonrelational_db002.htm#sthref232">21-5 MongoDB JPQL Examples</a></li>
<li><a href="nonrelational_db002.htm#sthref234">21-6 Oracle NoSQL Native Query</a></li>
<li><a href="nonrelational_db002.htm#sthref235">21-7 MongoDB Native Query</a></li>
<li><a href="nonrelational_db002.htm#sthref236">21-8 Oracle NoSQL persistence.xml Example</a></li>
<li><a href="nonrelational_db002.htm#sthref237">21-9 MongoDB persistence.xml Example</a></li>
</ul>
</div>
<!-- class="ind" -->
<!-- Start Footer -->
<div class="footer">
<hr />
<table class="simple oac_no_warn" summary="" cellspacing="0" cellpadding="0" width="100%">
<col width="33%" />
<col width="*" />
<col width="33%" />
<tr>
<td valign="bottom">
<table class="navigation simple oac_no_warn" summary="" cellspacing="0" cellpadding="0" width="100" align="center">
<col width="*" />
<col width="48%" />
<col width="48%" />
<tr>
<td>&nbsp;</td>
<td align="center"><a href="toc.htm"><img src="../../dcommon/images/larrow.png" alt="Previous" border="0" height="16" width="16" /></a></td>
<td align="center"><a href="title_eclipselink.htm"><img src="../../dcommon/images/rarrow.png" alt="Next" border="0" height="16" width="16" /></a></td>
</tr>
</table>
</td>
<td align="center" width="34%"><a href="http://www.eclipse.org/eclipselink/" title="EclipseLink home"><img src="../../dcommon/images/ellogo.png" alt="EclipseLink" width="150" border="0" /></a><br />
<font size="-2">Copyright&nbsp;&copy;&nbsp;2014,&nbsp;Oracle&nbsp;and/or&nbsp;its&nbsp;affiliates.&nbsp;All&nbsp;rights&nbsp;reserved.</font> <a href="../../dcommon/html/cpyr.htm"><br />
<td valign="bottom" align="right">
<table class="simple oac_no_warn" summary="" cellspacing="0" cellpadding="0" width="225">
<tr>
<td>&nbsp;</td>
<td align="center" valign="top"><a href="toc.htm"><img src="../../dcommon/images/contents.png" alt="Go To Table Of Contents" border="0" height="16" width="16" /><br />
</td><td>&nbsp;</td><td align="center"><a href="../../" target="_top" class="external text" title="Search" rel="nofollow"><img src="../../dcommon/images/search.png" alt="Search" style="border:0;" /><br /><span class="mini"></span></a></td><td>&nbsp;</td><td align="center"><a href="../eclipselink_otlcg.pdf" title="PDF" target="_blank"><img src="../../dcommon/images/pdf_icon.png" style="padding-right:5px;border:0" alt="PDF"></a></td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<!-- class="footer" -->
<div id="copyright">Copyright &copy; 2014 by The Eclipse Foundation under the <a href="http://www.eclipse.org/org/documents/epl-v10.php">Eclipse Public License (EPL)</a><br /> <script type="text/javascript">var LastUpdated = document.lastModified;document.writeln ("Updated: " + LastUpdated);</script> </div><!-- START: Analytics --><script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-1608008-2']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script><!-- END: Analytics --><!-- START: Sharethis --><script>var options={ "publisher": "e2fe9e07-fab6-4f84-83ea-0991b429842c", "position": "right", "ad": { "visible": false, "openDelay": 5, "closeDelay": 0}};var st_hover_widget = new sharethis.widgets.hoverbuttons(options);</script><!-- END: Sharethis --></body>
</html>