bug #7154
closedCdmEntityCache can update cached entities
100%
Description
The CdmEntityCache implemented with cdm-vaadin|02ec8d6 & cdm-vaadin|5e97d77 is used in the ToOneRelatedEntityReloader
to avoid java.lang.IllegalStateException: Multiple representations of the same entity problems in ToOneRelatedEntityFields
.
However when the related entity is being modified via the edit button of the ToOneRelatedEntityField
the modification will be reseted again by re-saving the old version of the entity which is cached in the CdmEntityCache
.
To overcome this problem the CdmEntityCache
needs to implement a method which allows to update the cached entity in case the entity used in the ToOneRelatedEntityField
has an later updatedWhen
value. The properties of later updated entity should be copied over to the cached entity.
Updated by Andreas Kohlbecker about 6 years ago
- Subject changed from CdmEntityCache an update cached entities to CdmEntityCache can update cached entities
Updated by Andreas Kohlbecker about 6 years ago
- Status changed from New to Resolved
- % Done changed from 0 to 50
Applied in changeset cdm-vaadin|2b9b03a1fae11f68da8d2803b8b75b10b0c524d9.
Updated by Andreas Kohlbecker about 6 years ago
- Status changed from Resolved to Closed
- % Done changed from 50 to 100