Bug 218 : Saving ManyToMany relationship ... with bean with no Id value
Priority 
Medium
Reported Version 
 
Logged By 
Rob
Status 
Fixed
Fixed Version 
2.4.0
Assigned To 
 
Product 
Ebean - core
Duplicate Of 
 
Created 
17/02/2010
Updated 
17/02/2010
Type 
Bug
 
Attachments 
No attachments

In the scenario where the ManyToMany association is being saved ... and the ManyToMany bean has not been saved (and does not have an Id) then you can get an error as one of the Id values are null.

 
Rob 17 Feb 06:49
The fix

The fix is to check the Id value is not null ... and if so throw an exception.

The developer should then fix the application.

Rob 17 Feb 06:56
Fixed in HEAD

Fixed in HEAD.

woResponse

Upload a file