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

Bug 316367

Summary: JAXB Externalized Metadata: Schema gen 'required' incorrect where a primitive type is mapped to xml-attribute
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:
Attachments:
Description Flags
Contains fix + test case mods for 2.2 stream none

Description David McCann CLA 2010-06-09 15:40:56 EDT
For attributes where the type is a primitive we should be setting the required flag to true on the generated schema component.  This works for @XmlPath, but not xml-path in ext. metadata.
Comment 1 David McCann CLA 2010-06-18 13:45:29 EDT
Created attachment 172239 [details]
Contains fix + test case mods for 2.2 stream
Comment 2 David McCann CLA 2010-06-18 13:55:08 EDT
Fix checked into the 2.2 stream.

Reviewed by:  matt.macivor@oracle.com
Tests: all unit tests pass as expected; jaxb/externalizedmetadata/mappings/direct/DirectMappingTestCases

Will check into 2.1 when it is available for checkins.
Comment 3 David McCann CLA 2010-06-23 15:00:03 EDT
Fix checked into the 2.1 stream.

Reviewed by: matt.macivor@oracle.com 
Tests:  all unit tests pass as expected; jaxb/externalizedmetadata/mappings/compositecollection/CompositeCollecitonMappingTestCases; jaxb/externalizedmetadata/mappings/direct/DirectMappingTestCases; jaxb/externalizedmetadata/xmladapter/XmlAdapterTestCases
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:32:44 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink