This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 225427 - Add read-only unidirectional ManyToMany mapping support to the EclipseLink-ORM.XML Schema
Summary: Add read-only unidirectional ManyToMany mapping support to the EclipseLink-OR...
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P4 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 325781
  Show dependency tree
 
Reported: 2008-04-02 16:37 EDT by Chris Delahunt CLA
Modified: 2022-06-09 10:34 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Delahunt CLA 2008-04-02 16:37:09 EDT
The only way I could think of to set a ManyToMany to read-only is to set insertable/writeable to false on the joinTable's join columns.  These tags are ignored though on ManyToMany's.  This means the only way to set a M:M as read-only is to used the mapped by, so only one side of a bidirectional M:M can be set as read-only.

Either we need a new way to specify a ManyToMany is read-only, or the insertable/writable flag should be taken into account when building the mappings from orm.xml.
Comment 1 Chris Delahunt CLA 2008-04-02 16:38:16 EDT
I put this as blocking 200040 since it was found in relation to work done on it, but it probably should be handled as a separate bug with a different priority.  

Comment 2 Tom Ware CLA 2009-04-16 10:59:38 EDT
Updating priority due to revised bug categorization process.  See the following page for details:

http://wiki.eclipse.org/EclipseLink/Development/Bugs/Guidelines#Priority_and_Target_Milestone 

If you feel the updated priority is incorrect, please send an email to eclipselink-users@eclipse.org.
Comment 3 Chris Delahunt CLA 2009-11-10 11:08:00 EST
See Bug 280436 for a fix that could be adapted to fix this issue
Comment 4 Doug Clarke CLA 2009-12-07 15:41:02 EST
This needs to be reverified
Comment 5 Guy Pelletier CLA 2009-12-08 09:03:18 EST
Removing from blocks 227219 as this bug is outside the scope of that bug.
Comment 6 Chris Delahunt CLA 2009-12-08 11:33:55 EST
This is still valid as there is no current way to specify that the relation
table is read-only from this ManyToMany mapping without using the mappedby
field.  The mappedby requires that the other side also have a ManyToMany that
is writable which may not be the case.  This is a feature request to get a
Unidirectional M:M read only support accessable through eclipselink orm.xml
and/or annotations.
Comment 7 Peter Krogh CLA 2010-06-04 14:39:09 EDT
2.1 Bug scrubbing, deferring to 2.1.1.
Comment 8 Peter Krogh CLA 2010-07-27 14:03:26 EDT
I should not ave oved this to 2.1.1, as no schema changes are to be made.

2.2.0
Comment 9 Eclipse Webmaster CLA 2022-06-09 10:34:52 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink