Skip to main content
Jump to: navigation, search

Difference between revisions of "EclipseLink/UserGuide/JPA/Basic JPA Development/Mapping/Basic Mappings"

(One intermediate revision by the same user not shown)
Line 12: Line 12:
* [ @Transient]
* [ @Transient]
* [ @Column]
* [ @Column]
* [ DirectToFieldMapping]

Latest revision as of 11:31, 27 October 2011

EclipseLink JPA

Error creating thumbnail: File missing
Mailing ListForumsIRCmattermost
OpenHelp WantedBug Day
Browse Source

Basic Mappings

Simple Java types are mapped as part of the immediate state of an entity in its fields or properties. Mappings of simple Java types are called basic mappings.

By default, EclipseLink persistence provider automatically configures a basic mapping for simple types.

Use the following annotations to fine-tune how your database implements these mappings:

For all mapping types there are a common set of options:

  • Read-Only: Specifies that the mapping should populate the value on read and copy. Required when multiple mappings share the same database column.
  • Converters: Allows custom data types and data conversions to be used with most mapping types
    • Annotations: @Converter, @TypeConverter, @ObjectTypeConverter, @StructConverter, @Convert
    • XML: <converter>, <type-converter>, <object-type-converter>, <struct-converter>, <convert>

See Default Conversions and Converters for details.

Error creating thumbnail: File missing

Version: 2.2.0 DRAFT
Other versions...

Back to the top