Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 322285 - [OXM] Need a way to specify Inheritance for a java-type
Summary: [OXM] Need a way to specify Inheritance for a java-type
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 321152
  Show dependency tree
 
Reported: 2010-08-10 16:32 EDT by Rick Barkhouse CLA
Modified: 2022-06-09 10:28 EDT (History)
2 users (show)

See Also:


Attachments
Proposed fix. (3.03 KB, patch)
2010-10-05 14:32 EDT, David McCann CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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