Affects Version/s: None
Fix Version/s: None
Issue was mentioned here :
To recap : each call to getDataObject would create and register a new data object instance, if that object is not persisted in the database.
For already persisted object there is no problem.
What I would like todo is the following :
Department dep = (Department) cayenneForm.getDataObject(); //<--this call creates and registes new data object
//because saveChanges() also makes a call to getDataObject(), another department is created and registered with cayenne,
//and we end up with two database entries.
|Project Import||Fri Mar 20 14:11:32 PDT 2009 [ 1237583492744 ]|
|Status||Resolved [ 5 ]||Closed [ 6 ]|
|Type||Improvement [ 4 ]||Bug [ 1 ]|
|Status||Open [ 1 ]||Resolved [ 5 ]|
|Resolution||Fixed [ 1 ]|
|Field||Original Value||New Value|
|Attachment||CayenneForm.java.patch [ 10052 ]|