Community
Participate
Working Groups
Build Identifier: I20110519-1138 1. Define a Java type mapping with an orderable relationship mapping (OneToMany or ManyToMany) 2. Create an EL mapping file and add the type mapping created in step 1 to it 3. In the JPA structure pane, right-click the relationship mapping defined in step 1 and try to add it to the EL mapping file An UnsupportedOperationException is thrown saying java.lang.UnsupportedOperationException: use #buildOrmOrderable(OrmAttributeMapping parent, Orderable2_0.Owner owner). A full stack trace is attached. PS: Trying to set a type mapping to cacheable also gives an UnsupportedOperationException. Reproducible: Always
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