Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 321244 - JAXB Externalized Metadata: Need support for descriptor/mapping properties
Summary: JAXB Externalized Metadata: Need support for descriptor/mapping properties
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 317962
  Show dependency tree
 
Reported: 2010-07-29 11:48 EDT by David McCann CLA
Modified: 2022-06-09 10:23 EDT (History)
0 users

See Also:


Attachments
Contains fix + test case mods (96.15 KB, patch)
2010-08-04 11:39 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 David McCann CLA 2010-07-29 11:48:46 EDT
We require support for setting a Map of properties on descriptors and mappings via external metadata.  The schema components should look something like the following:

<xs:element name="xml-property" type="xml-property" />

<xs:complexType name="xml-property">
    <xs:attribute name="name" type="xs:string" use="required" />
    <xs:attribute name="value" type="xs:string" use="required" />
    <xs:attribute name="value-type" type="xs:string" />
</xs:complexType>

Design and expected usege can be found on the following Wiki:

http://wiki.eclipse.org/EclipseLink/DesignDocs/317962/Phase2.1#xml-property
Comment 1 David McCann CLA 2010-08-04 11:39:52 EDT
Created attachment 175842 [details]
Contains fix + test case mods
Comment 2 David McCann CLA 2010-08-04 14:26:39 EDT
Final XSD changes:

<xs:element name="xml-properties" type="xml-properties" />
<xs:complexType name="xml-properties">
    <xs:sequence>
        <xs:element name="xml-property" minOccurs="0" maxOccurs="unbounded" >
            <xs:complexType>
                <xs:attribute name="name" type="xs:string" use="required" />
                <xs:attribute name="value" type="xs:string" use="required" />
                <xs:attribute name="value-type" type="xs:string" default="java.lang.String" />
            </xs:complexType>
        </xs:element>
    </xs:sequence>
</xs:complexType>

Design/examples can be found here:
http://wiki.eclipse.org/EclipseLink/DesignDocs/317962/Phase2.1#XmlProperty


Reviewed by:  matt.macivor@oracle.com
Tests: all unit tests pass as expected; jaxb/externalizedmetadata/mappings/direct/DirectMappingTestsCases
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:23:14 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink