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

Bug 323527

Summary: [Validation] Mapping annotations applied to both persistent fields and properties without Access defined
Product: [WebTools] Dali JPA Tools Reporter: Karen Butzke <karenfbutzke>
Component: JPAAssignee: Neil Hauge <neil.hauge>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: neil.hauge
Version: 3.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Karen Butzke CLA 2010-08-24 13:42:48 EDT
If mapping annotations are applied to both persistent field and properties of a java entity without access type defined there should be a validation error.
Comment 1 Neil Hauge CLA 2011-07-01 16:26:12 EDT
Moving JPA specific bugs to new JPA component in bugzilla.
Comment 2 Karen Butzke CLA 2012-09-04 14:28:22 EDT
This validation should be easier to implement now that we pull all the annotated fields and properties into the context model.

There was also a recent Stack Overflow question where the user had a validation error they couldn't figure out because of mixed access. http://stackoverflow.com/questions/12135233/entity-not-recognizing-the-id-in-a-mappedsuperclass/12183505#12183505