Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 347189 - [Validation] Need validation for default access type of an entity hierachy
Summary: [Validation] Need validation for default access type of an entity hierachy
Status: NEW
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: JPA (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 enhancement (vote)
Target Milestone: Future   Edit
Assignee: Neil Hauge CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-25 12:25 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-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.