Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 363849 - validation needed for enum mapping to a complex type
Summary: validation needed for enum mapping to a complex type
Status: RESOLVED FIXED
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: JAXB (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: 3.1   Edit
Assignee: Neil Hauge CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-15 12:12 EST by Karen Butzke CLA
Modified: 2012-03-21 14:24 EDT (History)
2 users (show)

See Also:


Attachments
example project (6.45 KB, application/x-zip-compressed)
2011-11-15 12:12 EST, Karen Butzke CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.