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.
Difference between revisions of "EclipseLink/UserGuide/JPA"
< EclipseLink | UserGuide
m |
|||
(27 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | |||
+ | '''[[Image:Elug_draft_icon.png|Warning]] This page is obsolete. Please see the ''[http://www.eclipse.org/eclipselink/documentation/ EclipseLink Solutions Guide]'' and ''[http://www.eclipse.org/eclipselink/documentation/ Understanding EclipseLink (Concepts Guide)]'' for current information.''' | ||
+ | |||
+ | |||
+ | ---- | ||
+ | |||
+ | |||
__NOTOC__ | __NOTOC__ | ||
<div style="width: 320px;">[[Image:Eclipselink-logo.gif]] </div> | <div style="width: 320px;">[[Image:Eclipselink-logo.gif]] </div> | ||
Line 28: | Line 35: | ||
=== [[EclipseLink/UserGuide/JPA/Advanced JPA Development|Advanced:]] === | === [[EclipseLink/UserGuide/JPA/Advanced JPA Development|Advanced:]] === | ||
+ | | [[Image:Elug mapping icon.png|link=]]<br>[[EclipseLink/UserGuide/JPA/Advanced JPA Development/NoSQL|NoSQL]] | ||
+ | | [[Image:Elug configure icon.png|link=]]<br>[[EclipseLink/UserGuide/JPA/Advanced JPA Development/Customizers|Customizers]] | ||
| [[Image:Elug performance icon.png|link=]]<br>[[EclipseLink/UserGuide/JPA/Advanced JPA Development/Performance|Performance]] | | [[Image:Elug performance icon.png|link=]]<br>[[EclipseLink/UserGuide/JPA/Advanced JPA Development/Performance|Performance]] | ||
| [[Image:Elug platform icon.png]]<br>[[EclipseLink/UserGuide/JPA/Advanced JPA Development/Platform Specific Configurations|Platforms]] | | [[Image:Elug platform icon.png]]<br>[[EclipseLink/UserGuide/JPA/Advanced JPA Development/Platform Specific Configurations|Platforms]] | ||
Line 73: | Line 82: | ||
****[[EclipseLink/UserGuide/JPA/Basic JPA Development/Entities/Ids/TableGenerator|@TableGenerator]] | ****[[EclipseLink/UserGuide/JPA/Basic JPA Development/Entities/Ids/TableGenerator|@TableGenerator]] | ||
****[[EclipseLink/UserGuide/JPA/Basic JPA Development/Entities/Ids/SequenceGenerator|@SequenceGenerator]] | ****[[EclipseLink/UserGuide/JPA/Basic JPA Development/Entities/Ids/SequenceGenerator|@SequenceGenerator]] | ||
+ | ****[[EclipseLink/UserGuide/JPA/Basic JPA Development/Entities/Ids/UuidGenerator|@UuidGenerator]] | ||
****[[EclipseLink/UserGuide/JPA/Basic JPA Development/Entities/Ids/GeneratedValue#Advanced Identity Generation|Advanced Identity Generation]] | ****[[EclipseLink/UserGuide/JPA/Basic JPA Development/Entities/Ids/GeneratedValue#Advanced Identity Generation|Advanced Identity Generation]] | ||
***[[EclipseLink/UserGuide/JPA/Basic JPA Development/Entities/Creating_and_Configuring_Entities#Configuring an Entity's Table|Tables]] | ***[[EclipseLink/UserGuide/JPA/Basic JPA Development/Entities/Creating_and_Configuring_Entities#Configuring an Entity's Table|Tables]] | ||
Line 107: | Line 117: | ||
*****[[EclipseLink/UserGuide/JPA/Basic JPA Development/Mapping/Relationship Mappings/ManyToOne|@ManyToOne]] | *****[[EclipseLink/UserGuide/JPA/Basic JPA Development/Mapping/Relationship Mappings/ManyToOne|@ManyToOne]] | ||
*****[[EclipseLink/UserGuide/JPA/Basic JPA Development/Mapping/Relationship Mappings/Embedded|@Embedded]] | *****[[EclipseLink/UserGuide/JPA/Basic JPA Development/Mapping/Relationship Mappings/Embedded|@Embedded]] | ||
− | *****[ | + | *****[http://www.eclipse.org/eclipselink/documentation/2.4/jpa/extensions/a_variableonetoone.htm @VariableOneToOne] |
****[[EclipseLink/UserGuide/JPA/Basic JPA Development/Mapping/Relationship Mappings/Common Relationship Configurations|Common Relationship Configurations]] | ****[[EclipseLink/UserGuide/JPA/Basic JPA Development/Mapping/Relationship Mappings/Common Relationship Configurations|Common Relationship Configurations]] | ||
*****[[EclipseLink/UserGuide/JPA/Basic JPA Development/Mapping/Relationship Mappings/Common Relationship Configurations/JoinFetch|@JoinFetch]] | *****[[EclipseLink/UserGuide/JPA/Basic JPA Development/Mapping/Relationship Mappings/Common Relationship Configurations/JoinFetch|@JoinFetch]] | ||
− | *****[ | + | *****[http://www.eclipse.org/eclipselink/documentation/2.4/jpa/extensions/a_batchfetch.htm @BatchFetch] |
****[[EclipseLink/UserGuide/JPA/Basic JPA Development/Mapping/Relationship Mappings/Collection Mappings|Collection Mappings]] | ****[[EclipseLink/UserGuide/JPA/Basic JPA Development/Mapping/Relationship Mappings/Collection Mappings|Collection Mappings]] | ||
*****[[EclipseLink/UserGuide/JPA/Basic JPA Development/Mapping/Relationship Mappings/Collection Mappings/Common Collection Configurations|Common Collection Configurations]] | *****[[EclipseLink/UserGuide/JPA/Basic JPA Development/Mapping/Relationship Mappings/Collection Mappings/Common Collection Configurations|Common Collection Configurations]] | ||
− | *****[[EclipseLink/UserGuide/JPA/Basic JPA Development/Mapping/Relationship Mappings/Collection Mappings/OneToMany|OneToMany]] | + | *****[[EclipseLink/UserGuide/JPA/Basic JPA Development/Mapping/Relationship Mappings/Collection Mappings/OneToMany|OneToMany]] |
− | *****[[EclipseLink/UserGuide/JPA/Basic JPA Development/Mapping/Relationship Mappings/Collection Mappings/ManyToMany|ManyToMany]] | + | *****[[EclipseLink/UserGuide/JPA/Basic JPA Development/Mapping/Relationship Mappings/Collection Mappings/ManyToMany|ManyToMany]] |
− | *****[[EclipseLink/UserGuide/JPA/Basic JPA Development/Mapping/Relationship Mappings/Collection Mappings/ElementCollection|ElementCollection]] | + | *****[[EclipseLink/UserGuide/JPA/Basic JPA Development/Mapping/Relationship Mappings/Collection Mappings/ElementCollection|ElementCollection]] |
− | ***[[EclipseLink/UserGuide/JPA/Basic JPA Development/Mapping/Locking|Locking]] | + | ***[[EclipseLink/UserGuide/JPA/Basic JPA Development/Mapping/Locking|Locking]] |
− | ****[[EclipseLink/UserGuide/JPA/Basic JPA Development/Mapping/Locking/Optimistic Locking|Optimistic Locking]] | + | ****[[EclipseLink/UserGuide/JPA/Basic JPA Development/Mapping/Locking/Optimistic Locking|Optimistic Locking]] |
− | **[[EclipseLink/UserGuide/JPA/Basic JPA Development/Caching|Caching]] | + | **[[EclipseLink/UserGuide/JPA/Basic JPA Development/Caching|Caching]] |
***[[EclipseLink/UserGuide/JPA/Basic JPA Development/Caching/Caching Overview|Caching Overview]] | ***[[EclipseLink/UserGuide/JPA/Basic JPA Development/Caching/Caching Overview|Caching Overview]] | ||
− | ***[[EclipseLink/UserGuide/JPA/Basic JPA Development/Caching/ | + | ***[[EclipseLink/UserGuide/JPA/Basic JPA Development/Caching/Configuring|Configuring Caching]] |
− | ***[[EclipseLink/UserGuide/JPA/Basic JPA Development/Caching/Shared and Isolated|Shared | + | ***[[EclipseLink/UserGuide/JPA/Basic JPA Development/Caching/Shared and Isolated|Shared, Isolated, Protected, Weak, and Read-Only Cache]] |
− | ***[[EclipseLink/UserGuide/JPA/Basic JPA Development/Caching/Type and Size|Type and Size]] | + | ***[[EclipseLink/UserGuide/JPA/Basic JPA Development/Caching/Type and Size|Cache Type and Size]] |
− | ***[[EclipseLink/UserGuide/JPA/Basic JPA Development/Caching/Expiration|Expiration]] | + | ***[[EclipseLink/UserGuide/JPA/Basic JPA Development/Caching/Expiration|Cache Expiration and Invalidation]] |
− | ***[[EclipseLink/UserGuide/JPA/Basic JPA Development/Caching/Coordination|Coordination]] | + | ***[[EclipseLink/UserGuide/JPA/Basic JPA Development/Caching/Coordination|Clustering and Cache Coordination]] |
+ | ***[[EclipseLink/UserGuide/JPA/Basic JPA Development/Caching/DatabaseEvents|Database Event Notification and Oracle DCN/QCN]] | ||
+ | ***[[EclipseLink/UserGuide/JPA/Basic JPA Development/Caching/Indexes|Cache Indexes]] | ||
+ | ***[[EclipseLink/UserGuide/JPA/Basic JPA Development/Caching/Query Cache|Query Results Cache]] | ||
+ | ***[[EclipseLink/UserGuide/JPA/Basic JPA Development/Caching/Query Options|Query Options and In-memory Querying]] | ||
+ | ***[[EclipseLink/UserGuide/JPA/Basic JPA Development/Caching/Cache API|Cache API]] | ||
+ | ***[[EclipseLink/UserGuide/JPA/Basic JPA Development/Caching/Interceptors |Cache Interceptors and External Caches]] | ||
**[[EclipseLink/UserGuide/JPA/Basic JPA Development/Querying|Querying]] | **[[EclipseLink/UserGuide/JPA/Basic JPA Development/Querying|Querying]] | ||
***[[EclipseLink/UserGuide/JPA/Basic JPA Development/Querying/JPQL|JPQL]] | ***[[EclipseLink/UserGuide/JPA/Basic JPA Development/Querying/JPQL|JPQL]] | ||
***[[EclipseLink/UserGuide/JPA/Basic JPA Development/Querying/Criteria|Criteria]] | ***[[EclipseLink/UserGuide/JPA/Basic JPA Development/Querying/Criteria|Criteria]] | ||
***[[EclipseLink/UserGuide/JPA/Basic JPA Development/Querying/Native|Native SQL Queries]] | ***[[EclipseLink/UserGuide/JPA/Basic JPA Development/Querying/Native|Native SQL Queries]] | ||
− | ***[ | + | ***[http://www.eclipse.org/eclipselink/documentation/2.4/jpa/extensions/annotations_ref001 StoredProcedures] |
***[[EclipseLink/UserGuide/JPA/Basic JPA Development/Querying/Query Hints|Query Hints]] | ***[[EclipseLink/UserGuide/JPA/Basic JPA Development/Querying/Query Hints|Query Hints]] | ||
− | ***[[EclipseLink/UserGuide/JPA/Basic JPA Development/Querying/Query Casting|Query Casting]] | + | ***[[EclipseLink/UserGuide/JPA/Basic JPA Development/Querying/Query Casting|Query Casting]] |
− | ***[[EclipseLink/UserGuide/JPA/Basic JPA Development/Querying/Batch Reading|Batch Reading]] | + | ***[[EclipseLink/UserGuide/JPA/Basic JPA Development/Querying/Batch Reading|Batch Reading]] |
− | ***[[EclipseLink/UserGuide/JPA/Basic JPA Development/Querying/Query Keys|Query Keys | + | ***[[EclipseLink/UserGuide/JPA/Basic JPA Development/Querying/Query Keys|Query Keys]] |
− | + | ||
− | + | ||
**[[EclipseLink/UserGuide/JPA/Basic JPA Development/Transactions|Transactions]] | **[[EclipseLink/UserGuide/JPA/Basic JPA Development/Transactions|Transactions]] | ||
***[[EclipseLink/UserGuide/JPA/Basic JPA Development/Transactions/Handling Concurrency Violations|Handling Concurrency Violations]] | ***[[EclipseLink/UserGuide/JPA/Basic JPA Development/Transactions/Handling Concurrency Violations|Handling Concurrency Violations]] | ||
− | + | **[[EclipseLink/UserGuide/JPA/Basic JPA Development/Packaging_and_Deploying_EclipseLink_JPA_Applications|Packaging and Deploying EclipseLink JPA Applications]] | |
− | **[[EclipseLink/UserGuide/JPA/Basic JPA Development/Packaging_and_Deploying_EclipseLink_JPA_Applications|Packaging and Deploying EclipseLink JPA Applications | + | ***[[EclipseLink/UserGuide/JPA/Basic JPA Development/Persistence Unit Properties|Persistence Unit Properties]] |
− | + | ||
<br> | <br> | ||
=== Advanced JPA Development === | === Advanced JPA Development === | ||
− | *[[EclipseLink/UserGuide/JPA/Advanced JPA Development|Advanced JPA Development]] | + | *[[EclipseLink/UserGuide/JPA/Advanced JPA Development|Advanced JPA Development]] |
+ | **[[EclipseLink/UserGuide/JPA/Advanced JPA Development/NoSQL|NoSQL]] | ||
+ | ***[[EclipseLink/UserGuide/JPA/Advanced JPA Development/NoSQL/About|About NoSQL]] | ||
+ | ***[[EclipseLink/UserGuide/JPA/Advanced JPA Development/NoSQL/Persistence Units|NoSQL Persistence Units]] | ||
+ | ***[[EclipseLink/UserGuide/JPA/Advanced JPA Development/NoSQL/Configuring|Configuring NoSQL]] | ||
+ | ***[[EclipseLink/UserGuide/JPA/Advanced JPA Development/NoSQL/Mappings|Mappings]] | ||
+ | ***[[EclipseLink/UserGuide/JPA/Advanced JPA Development/NoSQL/Querying|Querying]] | ||
+ | ***[[EclipseLink/UserGuide/JPA/Advanced JPA Development/NoSQL/Transactions|Transactions]] | ||
+ | ***[[EclipseLink/UserGuide/JPA/Advanced JPA Development/NoSQL/Supported Data-sources|Supported Data-sources]] | ||
**[[EclipseLink/UserGuide/JPA/Advanced JPA Development/Customizers|Customizers]] | **[[EclipseLink/UserGuide/JPA/Advanced JPA Development/Customizers|Customizers]] | ||
− | ***[[EclipseLink/UserGuide/JPA/Advanced JPA Development/Customizers#DescriptorCustomizer| | + | ***[[EclipseLink/UserGuide/JPA/Advanced JPA Development/Customizers#DescriptorCustomizer|DescriptorCustomizer]] |
***[[EclipseLink/UserGuide/JPA/Advanced JPA Development/Customizers#SessionCustomizer|SessionCustomizer]] | ***[[EclipseLink/UserGuide/JPA/Advanced JPA Development/Customizers#SessionCustomizer|SessionCustomizer]] | ||
− | **[[EclipseLink/UserGuide/JPA/Advanced JPA Development/ | + | **[[EclipseLink/UserGuide/JPA/Advanced JPA Development/Advanced Mapping|Advanced Mapping]] |
− | **[[EclipseLink/UserGuide/JPA/Advanced JPA Development/Returning|Returning]] | + | ***[http://www.eclipse.org/eclipselink/documentation/2.4/jpa/extensions/a_transformation.htm @Transformation] |
− | **[[EclipseLink/UserGuide/JPA/Advanced JPA Development/CopyPolicy|Instantiation and Copying]] | + | ***[http://www.eclipse.org/eclipselink/documentation/2.4/jpa/extensions/a_struct.htm @Struct and @Array types] |
− | **[[EclipseLink/UserGuide/JPA/Advanced JPA Development/Interfaces|Interfaces]] | + | ***[[EclipseLink/UserGuide/JPA/Advanced JPA Development/XMLType|XML Types]] |
− | **[[EclipseLink/UserGuide/JPA/ | + | ***[[EclipseLink/UserGuide/JPA/Advanced JPA Development/Returning|Returning]] |
− | **[[EclipseLink/UserGuide/JPA/Advanced JPA Development/ | + | ***[[EclipseLink/UserGuide/JPA/Advanced JPA Development/CopyPolicy|Instantiation and Copying]] |
− | **[[EclipseLink/UserGuide/JPA/ | + | ***[[EclipseLink/UserGuide/JPA/Advanced JPA Development/Interfaces|Interfaces]] |
+ | ***[[EclipseLink/UserGuide/JPA/Basic JPA Development/Mapping/Additional Criteria|Additional Criteria]] | ||
+ | **[[EclipseLink/UserGuide/JPA/Advanced JPA Development/Metamodel|Metamodel]] | ||
+ | **[[EclipseLink/UserGuide/JPA/Advanced JPA Development/Single-Table Multi-Tenancy|Multi-Tenancy]] | ||
+ | **[[EclipseLink/UserGuide/JPA/Advanced JPA Development/Composite Persistence Units|Composite Persistence Units]] | ||
**[[EclipseLink/UserGuide/JPA/Advanced JPA Development/History|History]] | **[[EclipseLink/UserGuide/JPA/Advanced JPA Development/History|History]] | ||
− | **[[EclipseLink/UserGuide/JPA/Advanced JPA Development/ | + | **[[EclipseLink/UserGuide/JPA/Advanced JPA Development/Events|Events]] |
− | + | ||
− | + | ||
**[[EclipseLink/UserGuide/JPA/Advanced JPA Development/Dynamic|Dynamic]] | **[[EclipseLink/UserGuide/JPA/Advanced JPA Development/Dynamic|Dynamic]] | ||
+ | ***[[EclipseLink/UserGuide/JPA/Advanced JPA Development/Extensible Entities|Extensible Entities]] | ||
+ | ***[[EclipseLink/UserGuide/JPA/Advanced JPA Development/External Mappings|External Mappings]] | ||
**[[EclipseLink/UserGuide/JPA/Advanced JPA Development/Schema Generation|Schema Generation]] | **[[EclipseLink/UserGuide/JPA/Advanced JPA Development/Schema Generation|Schema Generation]] | ||
− | ***[[EclipseLink/UserGuide/JPA/Advanced JPA Development/Schema Generation/CascadeOnDelete|@CascadeOnDelete]] | + | ***[[EclipseLink/UserGuide/JPA/Advanced JPA Development/Schema Generation/CascadeOnDelete|@CascadeOnDelete]] |
− | ***[[EclipseLink/UserGuide/JPA/Advanced JPA Development/Schema Generation/Index|@Index]] | + | ***[[EclipseLink/UserGuide/JPA/Advanced JPA Development/Schema Generation/Index|@Index]] |
− | ***[[EclipseLink/UserGuide/JPA/Advanced JPA Development/Schema Generation/Appending strings to CREATE TABLE statements|Appending strings to CREATE TABLE statements]] | + | ***[[EclipseLink/UserGuide/JPA/Advanced JPA Development/Schema Generation/Appending strings to CREATE TABLE statements|Appending strings to CREATE TABLE statements]] |
− | + | ||
**[[EclipseLink/UserGuide/JPA/Advanced JPA Development/Performance|Performance]] | **[[EclipseLink/UserGuide/JPA/Advanced JPA Development/Performance|Performance]] | ||
***[[EclipseLink/UserGuide/JPA/Advanced JPA Development/Performance/Performance Monitoring and Profiling|Performance Monitoring and Profiling]] | ***[[EclipseLink/UserGuide/JPA/Advanced JPA Development/Performance/Performance Monitoring and Profiling|Performance Monitoring and Profiling]] | ||
****[[EclipseLink/UserGuide/JPA/Advanced JPA Development/Performance/Performance Monitoring and Profiling/Performance Profiling|Performance Profiling]] | ****[[EclipseLink/UserGuide/JPA/Advanced JPA Development/Performance/Performance Monitoring and Profiling/Performance Profiling|Performance Profiling]] | ||
****[[EclipseLink/UserGuide/JPA/Advanced JPA Development/Performance/Performance Monitoring and Profiling/Fetch Group Monitoring|Fetch Group Monitoring]] | ****[[EclipseLink/UserGuide/JPA/Advanced JPA Development/Performance/Performance Monitoring and Profiling/Fetch Group Monitoring|Fetch Group Monitoring]] | ||
− | ****[[EclipseLink/UserGuide/JPA/Advanced JPA Development/Performance/Performance Monitoring and Profiling/Performance Monitoring|Performance Monitoring]] | + | ****[[EclipseLink/UserGuide/JPA/Advanced JPA Development/Performance/Performance Monitoring and Profiling/Performance Monitoring|Performance Monitoring]] |
− | ****[[EclipseLink/UserGuide/JPA/Advanced JPA Development/Performance/Performance Monitoring and Profiling/Query Monitoring|Query Monitoring]] | + | ****[[EclipseLink/UserGuide/JPA/Advanced JPA Development/Performance/Performance Monitoring and Profiling/Query Monitoring|Query Monitoring]] |
+ | ***[[EclipseLink/UserGuide/JPA/Advanced JPA Development/Performance/Fetch Groups|Fetch Groups]] | ||
+ | ***[[EclipseLink/UserGuide/JPA/Advanced JPA Development/Data Partitioning|Data Partitioning]] | ||
**[[EclipseLink/UserGuide/JPA/Advanced JPA Development/Performance/Weaving|Weaving]] | **[[EclipseLink/UserGuide/JPA/Advanced JPA Development/Performance/Weaving|Weaving]] | ||
***[[EclipseLink/UserGuide/JPA/Advanced JPA Development/Performance/Weaving/Dynamic Weaving|Configuring Dynamic Weaving]] | ***[[EclipseLink/UserGuide/JPA/Advanced JPA Development/Performance/Weaving/Dynamic Weaving|Configuring Dynamic Weaving]] | ||
Line 179: | Line 205: | ||
***[[EclipseLink/UserGuide/JPA/Advanced JPA Development/Performance/Weaving/Disabling Weaving with Persistence Unit Properties|Disabling Weaving with Persistence Unit Properties]] | ***[[EclipseLink/UserGuide/JPA/Advanced JPA Development/Performance/Weaving/Disabling Weaving with Persistence Unit Properties|Disabling Weaving with Persistence Unit Properties]] | ||
**[[EclipseLink/UserGuide/JPA/Advanced JPA Development/Platform Specific Configurations|Database and Application Server Support]] | **[[EclipseLink/UserGuide/JPA/Advanced JPA Development/Platform Specific Configurations|Database and Application Server Support]] | ||
− | |||
− | |||
− | |||
**[[EclipseLink/UserGuide/JPA/Advanced JPA Development/Stored Procedure and PL/SQL Support |Stored Procedure and PL/SQL Support ]] | **[[EclipseLink/UserGuide/JPA/Advanced JPA Development/Stored Procedure and PL/SQL Support |Stored Procedure and PL/SQL Support ]] | ||
− | **[[EclipseLink/UserGuide/JPA/Advanced JPA Development/ | + | **[[EclipseLink/UserGuide/JPA/Advanced JPA Development/JPA RESTful Service|JPA RESTful Services]] |
Latest revision as of 12:55, 30 January 2013
This page is obsolete. Please see the EclipseLink Solutions Guide and Understanding EclipseLink (Concepts Guide) for current information.
The EclipseLink JPA User's Guide
Complete Table of Contents:
Introduction
Basic JPA Development
- Basic JPA Development
- About EclipseLink JPA
- JPA Configuration Basics
- Configuring Entities
- Configuring Mappings
- Caching
- Caching Overview
- Configuring Caching
- Shared, Isolated, Protected, Weak, and Read-Only Cache
- Cache Type and Size
- Cache Expiration and Invalidation
- Clustering and Cache Coordination
- Database Event Notification and Oracle DCN/QCN
- Cache Indexes
- Query Results Cache
- Query Options and In-memory Querying
- Cache API
- Cache Interceptors and External Caches
- Querying
- Transactions
- Packaging and Deploying EclipseLink JPA Applications