Project

General

Profile

bug #7154

CdmEntityCache can update cached entities

Added by Andreas Kohlbecker 11 months ago. Updated 11 months ago.

Status:
Closed
Priority:
Highest
Category:
cdm-vaadin
Target version:
Start date:
01/04/2018
Due date:
% Done:

100%

Severity:
critical
Found in Version:
Tags:

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.

Associated revisions

Revision 2b9b03a1 (diff)
Added by Andreas Kohlbecker 11 months ago

fix #7154 CdmEntityCache can update cached entities and using this in ToOneRelatedEntityReloader and in
SpecimenTypeDesignationWorkingsetEditorPresenter to update the ui with modified collections

History

#1 Updated by Andreas Kohlbecker 11 months ago

  • Subject changed from CdmEntityCache an update cached entities to CdmEntityCache can update cached entities

#2 Updated by Andreas Kohlbecker 11 months ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 50

#3 Updated by Andreas Kohlbecker 11 months ago

  • Status changed from Resolved to Closed
  • % Done changed from 50 to 100

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 40 MB)