Bug 225642 - validation error missing for unmapped class listed in persistence.xml
Summary: validation error missing for unmapped class listed in persistence.xml
Status: VERIFIED FIXED
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: General (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 2.0 M7   Edit
Assignee: Karen Butzke CLA
QA Contact:
URL:
Whiteboard:
Keywords: PII
Depends on:
Blocks:
 
Reported: 2008-04-03 16:28 EDT by Karen Butzke CLA
Modified: 2008-05-05 15:01 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Karen Butzke CLA 2008-04-03 16:28:01 EDT
In 1.0 I believe we had a validation error if a class was listed in the persistence.xml but did not have a mapping annotation on it.
Comment 1 Karen Butzke CLA 2008-04-09 15:28:13 EDT
checked in a fix to HEAD
Comment 2 Karen Butzke CLA 2008-04-09 15:50:53 EDT
Added this validation error back, but moved it to the java file.  Before the message was found on the persistence.xml <class> tag.  The possible solutions to the error are either to remove the <class> tag from the persistence.xml or to Map the class.  The new validation error is:

Class "" is listed in the persistence.xml file but not mapped
Comment 3 Jolene Moffitt CLA 2008-05-05 08:07:05 EDT
Verified in wtp-sdk-I-I20080429053810-20080429053810.zip

Verified if you have the class but nothing is mapped the validation error appears stating Class "" is listed in the persistence.xml file but not mapped.