Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 346901 - [Validation] Need validation for enumerated type
Summary: [Validation] Need validation for enumerated type
Status: NEW
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: JPA (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: Future   Edit
Assignee: Neil Hauge CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-23 14:34 EDT by Nan Li CLA
Modified: 2011-07-01 16:24 EDT (History)
1 user (show)

See Also:


Attachments

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