| [EMF Compare] Merge problem? [message #781245] |
Fri, 20 January 2012 21:27  |
Per Sterner Messages: 91 Registered: October 2011 |
Member |
|
|
Hello,
I have created a little example project for my question.
1. There is a simple model with the classes Root, Person, City.
2. I create to different Instances for Root and add a Person with the same name
3. The diff says no differences 
4. I add a city to the first instance and then a reference from the person is set to the city.
5. The diff says "Reference changed" and "City added" 
6. Then I merge the Instances from left to right
7. The diff says no differences 
But when I look into the Person Instances the city reference from the second instance is not the newly created city instance. It is a reference to the city instance from the first model instance.
I think the city reference should point to thew newly created one?
1. Compare
2. Add & Assign City
3. Compare
Reference city in Testname1 changed from null to City?
City? has been added
4. Merge
5. Compare
6. Root1
Persons: 352450804 [City: 1736599312 / file:/.../workspace/de.pelle7.env/file1.nop],
Cities: 1736599312,
7. Root2
Persons: 674993851 [City: 1736599312 / file:/.../workspace/de.pelle7.env/file1.nop],
Cities: 574390407,
Perhaps this problem is related to https://bugs.eclipse.org/bugs/show_bug.cgi?id=355897
Regards,
Per
[Updated on: Fri, 20 January 2012 21:37] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.01802 seconds