Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 316034 - Interface listed in persistence.xml leads to "Class cannot be resolved" validation error
Summary: Interface listed in persistence.xml leads to "Class cannot be resolved" valid...
Status: VERIFIED FIXED
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: JPA (show other bugs)
Version: 2.3   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.3 M4   Edit
Assignee: Karen Butzke CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-07 13:31 EDT by Karen Butzke CLA
Modified: 2013-01-04 09:10 EST (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 2010-06-07 13:31:40 EDT
If you list interface model.Foo in the persistence.xml Dali gives a validation error that 'Class "model.Foo" cannot be resolved'. The JPA spec does not support interfaces, but at the least it seems like we could give a better validation error for this.
Comment 1 Neil Hauge CLA 2011-07-01 16:23:55 EDT
Moving JPA specific bugs to new JPA component in bugzilla.
Comment 2 Neil Hauge CLA 2011-10-07 12:52:05 EDT
Targeting to Juno release.
Comment 3 Karen Butzke CLA 2012-03-22 17:31:55 EDT
Probably not important enough to add a new validation error for this at this point.
Comment 4 Karen Butzke CLA 2012-12-04 16:52:03 EST
The bug as described has changed:
1. An enum listed in the persistence.xml class list leads to the validation error: 'Class "FooEnum" cannot be resolved'
2. An interface listed in the persistence.xml class list leads to validation errors: 'Class "FooInterface" is included in a persistence unit, but is not mapped', 'The Java class for mapped type "FooInterface" must define a non-private zero-argument constructor

With my fix for this bug we have 2 new validation errors for an enum or an interface that is listed in the persistence.xml. The above validation errors should not appear anymore.

1. 'Listed class "FooEnum"  must not be an enum'
2. 'Listed class "FooInterface" must not be an interface'


git commit to master:
http://git.eclipse.org/c/dali/webtools.dali.git/commit/?id=7d7659ab9d05c534091103aea097d10f94c6fcc0
Comment 5 Jolene Moffitt CLA 2013-01-04 09:10:12 EST
Verified in build I-3.5.0M4-20121217201101 that the validation errors were updated correctly for enum and interface.  To view steps to verify this issue go to http://wiki.eclipse.org/Dali_3.3_M4_Release