Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 349218 - [EclipseLink] Customizer validation appearing on entity in orm.xml
Summary: [EclipseLink] Customizer validation appearing on entity in orm.xml
Status: VERIFIED FIXED
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: JPA (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M1   Edit
Assignee: Nan Li CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-13 14:12 EDT by Karen Butzke CLA
Modified: 2011-11-01 18:24 EDT (History)
2 users (show)

See Also:
neil.hauge: review+


Attachments
Proposed Patch (2.21 KB, patch)
2011-06-15 10:18 EDT, Nan Li CLA
neil.hauge: iplog+
Details | Diff

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