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

Bug 349218

Summary: [EclipseLink] Customizer validation appearing on entity in orm.xml
Product: [WebTools] Dali JPA Tools Reporter: Karen Butzke <karenfbutzke>
Component: JPAAssignee: Nan Li <nan.n.li>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jolene.moffitt, neil.hauge
Version: 3.0Flags: neil.hauge: review+
Target Milestone: 3.1 M1   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Proposed Patch neil.hauge: iplog+

Description Karen Butzke CLA 2011-06-13 14:12:15 EDT
I have an eclipselink-orm.xml file with an entity and an invalid customizer:
	<entity class="String">
		<customizer class=""/>
	</entity>

If class="", then the validation is 'An entity customizer class should be specified'. 
If class="f" then the validation is 'The entity customizer class "f" does not exist on the project classpath'.
If class="java.lang.String" then the validation is 'The entity customizer class "java.lang.String" does not implement the org.eclipse.persistence.config.DescriptorCustomizer interface'

In all 3 cases, the validation error appears on the entity instead of on the customizer tag.
Comment 1 Nan Li CLA 2011-06-15 10:18:23 EDT
Created attachment 198028 [details]
Proposed Patch

Changed the validate error to appear on the class attribute of the customizer tag
Comment 2 Neil Hauge CLA 2011-07-01 16:23:07 EDT
Moving JPA specific bugs to new JPA component in bugzilla.
Comment 3 Neil Hauge CLA 2011-07-05 17:45:50 EDT
Patch applied to Head.
Comment 4 Jolene Moffitt CLA 2011-09-14 11:05:22 EDT
Verified in Build I-3.4.0-20110912100409 

Verified the error appears on the customizer class and not the entity and the error messages are correct. See the link to view test steps for verification. 
http://wiki.eclipse.org/Dali_3.1_M1