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

EclipseLink/Development/JPA2.0/uni-directional onetomany mapping

< EclipseLink‎ | Development
Revision as of 11:59, 18 July 2008 by Unnamed Poltroon (Talk) (New page: = Uni-directional OneToMany with Target Table = [http://bugs.eclipse.org/241413 Enhancement Request] ==Issue Summary== The JPA 1.0 specification only allows for uni-direction OneToMany map...)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Uni-directional OneToMany with Target Table

Enhancement Request

Issue Summary

The JPA 1.0 specification only allows for uni-direction OneToMany mapping that uses a Join Table but the JPA 2.0 specification will require support for a uni-direction OneToMany mapping where no Join Table is involved. The defaulting rules for a Uni-directional OneToMany have not changed and defaulted uni-directional OneToMany mappings will still default to using a Join Table but if the developer provides @JoinColumn or @JoinColumns on the uni-directional OneToMany mapping then a target table mapping must be used.

General Solution

The solution for this functionality will based on the structure of the current AggregateCollectionMapping. If a similar mapping is created where the target class descriptor is not marked as being a member of an Aggregate Collection then the target should be treated as an Entity.

Requirements

Back to the top