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

Bug 321244

Summary: JAXB Externalized Metadata: Need support for descriptor/mapping properties
Product: z_Archived Reporter: David McCann <david.mccann>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 317962    
Attachments:
Description Flags
Contains fix + test case mods none

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