Project

General

Profile

Actions

bug #7709

open

CdmTransientEntityCacher cannot handle multiple unpersisted entities of the same type

Added by Andreas Kohlbecker over 5 years ago. Updated almost 4 years ago.

Status:
Feedback
Priority:
Highest
Assignee:
Category:
cdmlib
Target version:
Start date:
Due date:
% Done:

50%

Estimated time:
Severity:
normal
Found in Version:

Description

the following code would fail:


newP1 = Person.NewInstance();
newP2 = Person.NewInstance();

pf1 = new PersonField(newP1);
cache.load(pf1);
pf2 = new PersonField(newP2);
cache.load(pf2);

assert pf1.getValue() != pf2.getValue()

The cacher replaces pf1 with pf2!!!

This is the cause for the problem described in issue #7641


Related issues

Related to EDIT - bug #7641: Reference editor: Error when incerting several new authors into a new author teamClosedAndreas Kohlbecker

Actions
Related to EDIT - task #7785: CdmUserHelper caches permission informationClosedAndreas Kohlbecker

Actions
Related to EDIT - feature request #9078: Handle name parsing and deduplication on server sideClosedAndreas Müller

Actions
Actions

Also available in: Atom PDF