Configuring a Relational Direct-to-Field Mapping (ELUG)

From Eclipsepedia

Revision as of 07:37, 20 August 2008 by Rick.sapir.oracle.com (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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

This table lists the configurable options for a relational direct-to-field mapping.

Option to Configure Workbench Java

Database field

Supported

Supported

Method or direct field access

Supported

Supported

Default null value

Supported

Supported

Read-only

Supported

Supported

Mapping comments

Supported

Supported

Serialized object converter

Supported

Supported

Type conversion converter

Supported

Supported

Object type converter

Supported

Supported


This example shows how to create a direct-to-field mapping and add it to a descriptor using Java code.

Direct-to-Field Mapping

public void customize(ClassDescriptor descriptor) { 
    DirectToFieldMapping mapping = new DirectToFieldMapping();  

    // configure mapping
    ... 

    // add mapping to descriptor
    descriptor.addMapping(mapping);
}

For more information, see the following:



Copyright Statement