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

Bug 363849

Summary: validation needed for enum mapping to a complex type
Product: [WebTools] Dali JPA Tools Reporter: Karen Butzke <karenfbutzke>
Component: JAXBAssignee: Neil Hauge <neil.hauge>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: neil.hauge, paul.fullbright
Version: 3.1   
Target Milestone: 3.1   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
example project none

Description Karen Butzke CLA 2011-11-15 12:12:45 EST
Created attachment 207040 [details]
example project

I have attached an example project that maps to the orm xml schema. On the ExistenceType enum I am not getting any validation messages for the enum mapping to a complex type "entity". I am also not getting any validation for the incorrect enum values.


@XmlType(name = "entity")
@XmlEnum
public enum ExistenceType {

	@XmlEnumValue(value="SDF")
    CHECK_CACHE,
    CHECK_DATABASE,
    ASSUME_EXISTENCE,
    ASSUME_NON_EXISTENCE;
Comment 1 Karen Butzke CLA 2011-11-15 13:36:53 EST
We either need validation on the @XmlType(name="entity") or validation for all of the incorrect enum values, default and specified.
Comment 2 Paul Fullbright CLA 2012-03-21 14:24:21 EDT
This was fixed in 3.1.