Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 316367 - JAXB Externalized Metadata: Schema gen 'required' incorrect where a primitive type is mapped to xml-attribute
Summary: JAXB Externalized Metadata: Schema gen 'required' incorrect where a primitive...
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:
 
Reported: 2010-06-09 15:40 EDT by David McCann CLA
Modified: 2022-06-09 10:32 EDT (History)
0 users

See Also:


Attachments
Contains fix + test case mods for 2.2 stream (14.76 KB, patch)
2010-06-18 13:45 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-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