Bug 35 : Save cascade on partially populated bean ... invokes lazy loading
Priority 
High
Reported Version 
 
Logged By 
Rob
Status 
Fixed
Fixed Version 
0.9.6
Assigned To 
 
Product 
Ebean - core
Duplicate Of 
 
Created 
21/02/2008
Updated 
21/02/2008
Type 
Bug
 
Attachments 
No attachments

If you fetch a partial bean... and save it... and one of its @OneToOne @ManyToOne properties has save cascade on it... then a lazy load of the bean will occur.

The fix is to check that the property has been loaded in the partial bean first before the save recurses.

 
Rob 21 Feb 02:14
Fixed in 0.9.5b

I have fixed this... in addition to adding a slight performance improvement. The performance improvement is to skip cascading save of unmodified beans that themselves will not recurse.

woResponse

Upload a file