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.
Difference between revisions of "Configuring a Relational One-to-Many Mapping (ELUG)"
m (→Introduction to Relational One-to-Many Mapping Configuration) |
m (→Introduction to Relational One-to-Many Mapping Configuration) |
||
Line 127: | Line 127: | ||
* [[Configuring%20a%20Relational%20Mapping%20(ELUG)|Configuring a Relational Mapping]] | * [[Configuring%20a%20Relational%20Mapping%20(ELUG)|Configuring a Relational Mapping]] | ||
* [[Creating%20and%20Configuring%20Mappings%20(ELUG)|Creating and Configuring Mappings]] | * [[Creating%20and%20Configuring%20Mappings%20(ELUG)|Creating and Configuring Mappings]] | ||
+ | |||
For information on using JPA to configure one-to-many mappings, see [[Introduction%20to%20EclipseLink%20JPA%20(ELUG)|@OneToMany]]. | For information on using JPA to configure one-to-many mappings, see [[Introduction%20to%20EclipseLink%20JPA%20(ELUG)|@OneToMany]]. |
Revision as of 15:12, 29 November 2007
This section describes the various components that you must configure in order to use a relational one-to-many mapping.
For information on how to configure EclipseLink mappings options common to two or more mapping types, see Configuring a Mapping.
For information on how to create EclipseLink mappings, see Creating a Mapping.
Configurable Options for Relational One-to-Many Mapping lists the configurable options for a relational one-to-many mapping.
Introduction to Relational One-to-Many Mapping Configuration
This table lists the configurable options for a relational one-to-many mapping.
Configurable Options for Relational One-to-Many Mapping
Option | Workbench | Java |
---|---|---|
This example shows how to create a one-to-many mapping and add it to a descriptor using Java code.
One-to-Many Mapping
public void customize(ClassDescriptor descriptor) { OneToManyMapping mapping = new OneToManyMapping(); // configure mapping ... // add mapping to descriptor descriptor.addMapping(mapping); }
For more information, see the following:
For information on using JPA to configure one-to-many mappings, see @OneToMany.