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

Bug 347189

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

Description Nan Li CLA 2011-05-25 12:25:58 EDT
Build Identifier: I20110519-1138

By default, a single access type (field or property access) applies to an entity hierarchy. It's an error if a default access type cannot be determined and an access type is not explicitly specified by means of annotations or the XML descriptor. The behavior of applications that mix the placement of
annotations on fields and properties within an entity hierarchy without explicitly specifying the Access annotation is undefined. Two cases may be considered:

1. Both mapped superclass and entity use default access type, but one places annotations on the persistent fields while the other on properties. 

2. Both entity and its embedded object use default access type, but one places annotations on the persistent fields while the other on properties. 

Under both cases, a validate error should be reported to indicate incompatible access types.

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