Skip to main content

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.

Jump to: navigation, search

Configuring a Relational One-to-Many Mapping (ELUG)

For information on how to create EclipseLink mappings, see Creating a Mapping.

This table lists the configurable options for a relational one-to-many mapping.


Configurable Options for Relational One-to-Many Mapping

Option Workbench Java

Configuring Reference Descriptor

Supported

Supported

Configuring a Type Conversion Converter

Supported

Supported

Configuring Read-Only Mappings

Supported

Supported

Configuring Mapping Comments

Supported

Supported

Configuring Batch Reading

Supported

Supported

Configuring Mapping Comments

Supported

Supported

Configuring Bidirectional Relationship

Supported

Supported

Configuring Container Policy

Supported

Supported

Configuring Mapping Comments

Supported

Supported

Configuring Joining at the Mapping Level

Supported

Supported

Configuring Query Key Order

Supported

Supported


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.



Copyright Statement

Back to the top