Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 322285

Summary: [OXM] Need a way to specify Inheritance for a java-type
Product: z_Archived Reporter: Rick Barkhouse <rick.barkhouse>
Component: EclipselinkAssignee: 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:
Description Flags
Proposed fix. none

Description Rick Barkhouse CLA 2010-08-10 16:32:14 EDT
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>
Comment 1 David McCann CLA 2010-10-05 14:32:14 EDT
Created attachment 180272 [details]
Proposed fix.
Comment 2 David McCann CLA 2010-10-05 14:41:48 EDT
Reviewed by:  rick.barkhouse@oracle.com
Tests:  all unit tests pass as expected
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:28:54 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink