Bug 124 : Issue with Save Cascade on both sides of bi-directional relationship with "vanilla" / non-enhanced beans
Priority 
High
Reported Version 
 
Logged By 
Rob
Status 
Fixed
Fixed Version 
2.0.0
Assigned To 
 
Product 
Ebean - core
Duplicate Of 
 
Created 
17/06/2009
Updated 
17/06/2009
Type 
Bug
 
Attachments 
No attachments

So you need:
- bi-directional relationship
- both sides with save cascade (cascade.PERSIST or cascade.ALL)
- using "vanilla" beans (not enhanced)

Save could go into infinite loop.

 
Rob 17 Jun 13:03
The issue

The issue being that for non-enhanced beans ("vanilla") you can't tell when it has been saved (due to insert/update testing) ... so it would cascade between the 2 relationships.

Rob 17 Jun 13:16
Fixed in HEAD

Fixed in HEAD.

woResponse

Upload a file