| Summary: | incorrect join column referenced column name with JOINED inheritance | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [WebTools] Dali JPA Tools | Reporter: | Karen Butzke <karenfbutzke> | ||||||
| Component: | General | Assignee: | Karen Butzke <karenfbutzke> | ||||||
| Status: | VERIFIED FIXED | QA Contact: | |||||||
| Severity: | major | ||||||||
| Priority: | P2 | CC: | david_williams, douglas.clarke, neil.hauge, raghunathan.srinivasan, tranle1 | ||||||
| Version: | 2.3 | Flags: | david_williams:
pmc_approved+
raghunathan.srinivasan: pmc_approved+ neil.hauge: pmc_approved? (naci.dai) neil.hauge: pmc_approved? (deboer) neil.hauge: pmc_approved+ neil.hauge: pmc_approved? (kaloyan) neil.hauge: review+ |
||||||
| Target Milestone: | 2.3 RC4 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows XP | ||||||||
| Whiteboard: | PMC_approved | ||||||||
| Attachments: |
|
||||||||
|
Description
Karen Butzke
Only workaround for this is to turn off the validation for 'join column referenced column name cannot be resolved'. Specifying the referenced column will still result in an incorrect validation error. Investigate for RC4 given severity. Created attachment 170813 [details]
example JPA project
Created attachment 170818 [details] proposed patch against head This patch removes the validation error for a join-column when the referenced-column-name is not specified. This particular validation is redundant with the the pk-join-column validation that should occur on the target entity. We will still have validation if the referenced-column-name is specified. This is a low-risk fix for this bug for the Helios release. We need to further address this and correctly handle the default referenced-column-name for EclipseLink, these remaining issues will dealt with in bug 315411. I have tested with xml and java specification and also with AssociationOverrides, the referenced-column-name is only validated if it is specified. * Explain why you believe this is a stop-ship defect. Or, if it is a "hotbug" (requested by an adopter) please document it as such. This bug produces invalid errors on valid mapping metadata. * Is there a work-around? If so, why do you believe the work-around is insufficient? The only workaround is to disable this validation message in the problem preferences, but this will also eliminate this validation in cases where it is correctly identifying a problem. * How has the fix been tested? Is there a test case attached to the bugzilla record? Has a JUnit Test been added? The fix has been manually tested by Karen and myself. See comment #5. * Give a brief technical overview. Who has reviewed this fix? See comment #4. I have reviewed the fix and can confirm that this is minimal and isolated fix. * What is the risk associated with this fix? Risk is very low, as we have further restricted the case where validation is added in this scenario. I think the very low risk of the fix warrants addressing this issue in RC4. Looks small enough. And false alarm validation message are pretty bad (and in some cases can prevent deployment, etc. not sure if that's true here) Approving this so we can go ahead and get it released for tonight's build. Patch checked in and released. verified fixed in build WTP-S-3.2.0RC4-20100603065347 |