Skip to main content

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.

Jump to: navigation, search

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

Revision as of 13:26, 12 August 2008 by James.sutherland.oracle.com (Talk | contribs) (New page: =Discussion= ===Versioning=== I don't understand how versioning will work, do you intend to check or update the version? Won't this conflict with the target object's versioning causing l...)

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

Discussion

Versioning

I don't understand how versioning will work, do you intend to check or update the version? Won't this conflict with the target object's versioning causing lock exceptions when the object changes? Why would the target object version be incremented, doesn't the source own the relationship entirely? Does the JPA spec say anything about the version locking requirements? Perhaps versioning should be similar to m-m and only update the source version, if and only if the source is using cascaded locking.

13:26, 12 August 2008 (EDT)

History

You mentioned history support, how is this going to work exactly? Seems like the mapping would require its' own history policy similar to m-m?

James.sutherland.oracle.com 13:26, 12 August 2008 (EDT)

Queries

The design on how insert, update, delete, remove are going to be handled are missing. How are each of these going to be implemented? Does delete of the source if private owned do a batch delete-all, or just delete each target object? What about not private owned? What custom queries will this mapping support? Will batch reading and joining work correctly given the target objects do not have the foreign key mapped? How will the batched objects be matched up with the source? Will query additionalFields be used?

James.sutherland.oracle.com 13:26, 12 August 2008 (EDT)

Id

What is the foreign key is part of the target object's primary key? Does the JPA spec allow this? If the user defines a read-only basic for the foreign key will this work?

James.sutherland.oracle.com 13:26, 12 August 2008 (EDT)

Back to the top