| Summary: | [OXM] Need a way to specify Inheritance for a java-type | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Rick Barkhouse <rick.barkhouse> | ||||
| Component: | Eclipselink | Assignee: | Nobody - feel free to take it <nobody> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | enhancement | ||||||
| Priority: | P3 | CC: | david.mccann, rick.barkhouse | ||||
| Version: | unspecified | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Bug Depends on: | |||||||
| Bug Blocks: | 321152 | ||||||
| Attachments: |
|
||||||
Created attachment 180272 [details]
Proposed fix.
Reviewed by: rick.barkhouse@oracle.com Tests: all unit tests pass as expected The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink |
For Dynamic JAXB to properly map inheritance relationships, we need information added to java-type to specify a superclass, since no such information will be available in any underlying Java model. e.g. <java-types> <java-type name="com.foo.Project"> <java-attributes> <xml-element java-attribute="id" type="java.lang.Integer"/> <xml-element java-attribute="desc" type="java.lang.String"/> </java-attributes> </java-type> <java-type name="com.foo.LargeProject" super-class="com.foo.Project"> <java-attributes> <xml-element java-attribute="budget" type="java.lang.Double"/> </java-attributes> </java-type> </java-types>