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.
EclipseLink/Examples/JPA
< EclipseLink | Examples
The following examples are provided to assist developers with their adoption and usage of EclipseLink's JPA and native ORM functionality. See Developing JPA Projects in the EclipseLink User's Guide for details.
EclipseLink JPA Examples/Tutorials
Basic
- How to configure
- Using the EntityManager API
- How to use outside of the container
- How to use locking
- How to use caching
Diagnostics
- How to configure logging
- How to configure a third party custom logger
- How to validate metadata against the database
Mapping
- How to use an EclipseLink ORM.XML Mapping file
- How to configure primary key generation
- How to define inheritance
- How to map an Enum type to coded values
- How to map a List of Enums
- How to preserve collection ordering (JAP 1.0)
Querying
- How to use pessimistic locking
- How to page query results
- How to execute a Query using an EclipseLink native DatabaseQuery
- How to extend EclipseLink for Nested FecthGroups
Java SE Examples
Rich Client Platform (RCP)
Spring JPA
Using Native ORM through JPA
Using Native EclipseLink ORM API
Migration
Tutorials
JPA Web Application Tutorials
Under Construction
Querying
- How to optimize searching using data projections
- How to optimize graph loading
- How to access EclipseLink's native API through JPA
Java SE Examples
- GeoNames Example (under development bug 227113)
Database Platform Extensions
- Oracle: Spatial, VPD/OLS, TIMESTAMP, XDB
Advanced
- Dynamic JPA Example: Example extension for JPA without Java classes and XML
Application Server specific
JBoss Seam
Integrating EclipseLink JPA with an IDE
The following tutorials describe details on running EclipseLink JPA on a specific Java IDE.
- Eclipse
- MyEclipse
- WebLogic Workshop
- IBM WebSphere Studio
- IBM Rational Application Developer 7.5
- Oracle JDeveloper 11.1.1
- IntelliJ IDEA
- SUN Java Studio (NetBeans)
- Borland JBuilder
Integrating EclipseLink JPA with a Database Platform
The following tutorials describe details on running EclipseLink JPA on a specific database platform.
- Oracle 11 on Tomcat 6,
- MySQL
- Derby on GlassFish V2 / Sun Application Server 9
- DB2 Express C 9.5 on IBM WebSphere CE
- JavaDB
- HSQL on JBoss