Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 1.1.0
-
Fix Version/s: 1.1.0
-
Component/s: DSL for Services
-
Labels:None
-
Number of attachments :
Description
No id is set for newly added dto's to an existing object hierarchy when updated by the update-service method.
When updating an Xdto via the updateX service method, new objects get an id assigned at the end of the transaction (after flush). All translations from domain object to dto took place before that. There was no id set at that time.
Issue Links
| This issue is related to: | ||||
| MODFORJ-208 | ConcurrentUpdateException |
|
|
|
| MODFORJ-138 | The transaction advice is done on the LOCAL service instead of the DOMAIN service |
|
|
|
To see this effect in RecordShop
Unittest: testUpdateOrdersWithNewOrderLine in ThreeLevelsAssociationTests.java
Uncomment the line: //TODO
MODFORJ-144assertTrue(orderLineDto.getId() > 0);MODFORJ-144assertTrue(orderLineDto.getId() > 0);