| Summary: | targetEntity property affects correct resolving of a relation | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [WebTools] Dali JPA Tools | Reporter: | Stefan Dimov <stefan.dimov> | ||||
| Component: | Diagram Editor | Assignee: | Stefan Dimov <stefan.dimov> | ||||
| Status: | RESOLVED FIXED | QA Contact: | Stefan Dimov <stefan.dimov> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | david_williams, neil.hauge, petya.sabeva | ||||
| Version: | 3.0 | Flags: | david_williams:
pmc_approved+
stefan.dimov: pmc_approved? (raghunathan.srinivasan) stefan.dimov: pmc_approved? (naci.dai) stefan.dimov: pmc_approved? (deboer) stefan.dimov: pmc_approved? (neil.hauge) stefan.dimov: pmc_approved? (kaloyan) stefan.dimov: pmc_approved? (cbridgha) petya.sabeva: review+ stefan.dimov: review+ neil.hauge: review+ |
||||
| Target Milestone: | 3.0 RC2 | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | PMC_approved | ||||||
| Attachments: |
|
||||||
|
Description
Stefan Dimov
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 . |