Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Readonly ManyToMany mapping?
Readonly ManyToMany mapping? [message #540003] Mon, 14 June 2010 14:53 Go to next message
Kevin  is currently offline Kevin Friend
Messages: 2
Registered: June 2010
Junior Member
I have a many-to-many association database view and I mapped entity A and B using this association database view, the problem now is that when I need to delete A, it try to delete the association entry in the db view.. How do a map a many-to-many in a ready only fashion? Just like in manytoone we have insertable="false", etc.

Btw, I'm using XML for the mappings.

Thanks,

Re: Readonly ManyToMany mapping? [message #540860 is a reply to message #540003] Thu, 17 June 2010 13:51 Go to previous message
James Sutherland is currently offline James SutherlandFriend
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

EclipseLink has a readOnly option on all of its mappings that can be used to avoid the delete from the join table. Unfortunately there is currently no support to enable this in annotations or xml, you need to use a DescriptorCustomizer to get the ManyToManyMapping and set it to be readOnly.

Please log a bug that readOnly is not supported from annotations and xml, and vote for the bug.


James : Wiki : Book : Blog : Twitter
Previous Topic:Recommended way to store XML data with EL
Next Topic:Assigning a numeric sequence value to a varchar column
Goto Forum:
  


Current Time: Thu Apr 25 01:00:03 GMT 2024

Powered by FUDForum. Page generated in 0.04853 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top