Community
Participate
Working Groups
Editor is unable to resolve relationships with targetEntity property of the mapping attribute: 1. Create two entities 2. Create one-to-one relation between them 3. Add targetEntity property to the mapping attribute of the owner entity 4. Remove and readd one of the entities to the diagram Result: The relationship is not visualized. If you remove the targetEntity property and repeat step #4 the relation will reappear
Created attachment 195743 [details] patch
This defect doesn't represent correctly the diagram. If the user uses the targetEntity propert she won't be able to see the relations in the diagram. That's why I believe that this patch should get into RC2. The only workaround I can think of is to remove the targetEntity property in order to see the relation, which is not much of a workaround, so it shouldn't be considered seriously. The fix was tested manually. All the existing JUnit tests are passing successfully. This bug is because in the editor code is used incorrectly the method RelationshipMappingAnnotation.getTargetEntity() instead of RelationshipMappingAnnotation.getFullyQualifiedTargetEntityClassName() and later on a certain string comparison returns false. Petya reviewed the fix. The change is very small - in one place just the correct method is invoked, so the risk is very low.
patch committed and released
.