CdmEntityCache can update cached entities
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
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
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.
#2 Updated by Andreas Kohlbecker over 2 years ago
- Status changed from New to Resolved
- % Done changed from 0 to 50
Applied in changeset cdm-vaadin|2b9b03a1fae11f68da8d2803b8b75b10b0c524d9.