Bug 174 : Change behaviour ... save for ManyToMany will save relationship without requiring Cascade.ALL etc
Priority 
High
Reported Version 
 
Logged By 
Rob
Status 
Fixed
Fixed Version 
2.2.0
Assigned To 
 
Product 
Ebean - core
Duplicate Of 
 
Created 
02/11/2009
Updated 
02/11/2009
Type 
Bug
 
Attachments 
No attachments

This is a change of behaviour request / bug.

Currently with ManyToMany to save the 'relationship' ... aka insert/delete into the intersection table you need to have Cascade.ALL or Cascade.PERSIST on the relationship.

The request is to remove this requirement. This means that when you save the parent the ManyToMany relationship will always maintained. The Cascade.PERSIST or Cascade.ALL means whether or not to save the bean on the other side of the relationship.

 
Rob 02 Nov 12:04
Thanks Eddie

Thanks Eddie for bringing this into question.

The change for this is in HEAD.

woResponse

Upload a file