| Summary: | Unable to add mappings to EclipseLink mapping file - UnsupportedOperationException thrown when trying to add orderable mapping to eclipselink-orm.xml | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [WebTools] Dali JPA Tools | Reporter: | Nan Li <nan.n.li> | ||||||
| Component: | General | Assignee: | Brian Vosburgh <brian.vosburgh> | ||||||
| Status: | VERIFIED FIXED | QA Contact: | |||||||
| Severity: | major | ||||||||
| Priority: | P1 | CC: | david_williams, jolene.moffitt, neil.hauge, raghunathan.srinivasan | ||||||
| Version: | unspecified | Flags: | david_williams:
pmc_approved+
neil.hauge: pmc_approved+ neil.hauge: pmc_approved? (naci.dai) neil.hauge: pmc_approved? (deboer) brian.vosburgh: pmc_approved? neil.hauge: pmc_approved? (kaloyan) neil.hauge: pmc_approved? (cbridgha) neil.hauge: review+ |
||||||
| Target Milestone: | 3.0 RC3 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows 7 | ||||||||
| Whiteboard: | PMC_approved | ||||||||
| Attachments: |
|
||||||||
|
Description
Nan Li
Created attachment 196587 [details]
Stack Trace
Created attachment 196595 [details]
candidate patch
We are checking whether the orm.xml file's version is "2.0"; but eclipselink-orm.xml files can have higher a version (e.g. "2.1"). Changed the check to whether the version is greater than "2.0". This, of course, assumes the eclipselink-orm.xml version is reasonably in sync with the spec orm.xml version.
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 is a regression that was the result of the fix for bug 341415. There is a major loss of functionality as a result, largely that you cannot add mappings to the eclipselink-orm.xml mapping file. This must be fixed for Indigo. Is there a work-around? If so, why do you believe the work-around is insufficient? Only workaround would be to disable EclispeLink support and manually write mapping file. 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 tested by Brian and myself. Give a brief technical overview. Who has reviewed this fix? See comment 2. I have reviewed the fix. It is safe, simple, and effective. What is the risk associated with this fix? Very low risk. Patch checked into HEAD. Verified in Build I-3.3.0RC4-20110603221533 Verified you can add mappings to EL orm mapping file without error. See the link to view test steps for verification. http://wiki.eclipse.org/Dali_3.0_RC3 |