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

Bug 346901

Summary: [Validation] Need validation for enumerated type
Product: [WebTools] Dali JPA Tools Reporter: Nan Li <nan.n.li>
Component: JPAAssignee: Neil Hauge <neil.hauge>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: neil.hauge
Version: unspecified   
Target Milestone: Future   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Nan Li CLA 2011-05-23 14:34:25 EDT
Build Identifier: I20110512-2000

1. An Enumerated annotation/element specifies that a persistent property or field should be persisted as a enumerated type. The Enumerated annotation may be used in conjunction with the Basic annotation/element or ElementCollection annotation/element when the element collection value is of basic type.

Validation error should be reported if the type of a persistent property/field or the type of the value of an element collection is not a enumerated type when Enumerated annotation/element applies.

2. The MapKeyEnumerated annotation/element is used to specify the enum type for a map key whose basic type is an enumerated type. The MapKeyEnumerated annotation/element can be applied to an element collection or relationship of type java.util.Map, in conjunction with the ElementCollection, OneToMany, or ManyToMany annotation/element.

Validation error should be reported if the type of a map key is not a enumerated type when the MapKeyEnumerated annotation/element applies.

Reproducible: Always
Comment 1 Neil Hauge CLA 2011-07-01 16:24:19 EDT
Moving JPA specific bugs to new JPA component in bugzilla.