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
Revision as of 09:57, 21 August 2008 by Unnamed Poltroon (Talk) (→Integrating EclipseLink JPA with an IDE)
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
Diagnostics
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
Querying
Java SE Examples
Rich Client Platform (RCP)
Spring JPA
Using Native ORM through JPA
Using Native EclipseLink ORM API
Tutorials
JPA Web Application Tutorials
- Step by step Instructions by Container for a basic JEE JPA Application
Container | Version | JEE Version | Issues |
---|---|---|---|
Oracle WebLogic Server | 10.0/10.3 | 5 | bea-wls-tools-2.0.2 plugin working up to Eclipse Ganymede 3.4M5 |
Oracle OC4J | 10.1.3 / 11.1.1 | 5 | - |
GlassFish | V2.1 | 5 | Requires GlassFish V2.1 build 32 |
GlassFish | V3 | 5 | |
JBoss | 4.2.2 | 5 | Dynamic weaving is disabled due to (JIRA-572) - see static weaving workaround using the JBoss JSFEJB3 example |
SUN Application Server | 9.1 | 5 | - |
IBM WebSphere | 6.1 | 1.4 | - |
IBM WebSphere | 7.5 | 5 | - |
IBM WebSphere CE | 2.0.0.2 | 5 | - |
Apache Geronimo | 2.0.2 | 5 | - |
Apache Tomcat | 6.0.18 | 5 (w/o EJB) | 2.5 Servlet container will support application managed JPA entities using RESOURCE_LOCAL or JTA transactions.
SessionCustomizer is required for JTA. Only static weaving (instrumentation) is available. No @EJB or @PersistenceContext injection is available. |
Under Construction
Mappings
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
- Oracle JDeveloper
- IntelliJ IDEA
- SUN Java Studio (NetBeans)
- Borland JBuilder