Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 355236 - JPA validator does not detected classes in other projects in the class path
Summary: JPA validator does not detected classes in other projects in the class path
Status: NEW
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: JPA (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Brian Vosburgh CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-19 11:51 EDT by elhanan Maayan CLA
Modified: 2013-09-06 16:52 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 elhanan Maayan CLA 2011-08-19 11:51:56 EDT
assume that i have a project called PersistenceLib, which is not exactly a jpa project, but does contain annotated class for re-use (like super mapped classes and interfaces)
now  i have the actuall project, which references PersistenceLib and has entities extending them, but the validator doesn't detect them untill i explicitly list them in persistence.xml
which is strange and rather inconsistent, becouse it's the validator job's to detect said classes, it simply doesn't scan other projects in the classpath, and it's not like i can define it as a jar file becouse it's not. (not yet)
Comment 1 Neil Hauge CLA 2011-08-23 14:57:24 EDT
This is a current limitation of our binary class support.  I can't find an existing bug regarding this limitation, so will use this as tracking bug for this functionality.
Comment 2 Neil Hauge CLA 2011-10-07 12:52:22 EDT
Targeting to Juno release.
Comment 3 Brian Vosburgh CLA 2012-05-15 11:33:09 EDT
It's not clear what you are expecting.

Currently, Dali will validate either:

- the classes it discovers via the persistence.xml file

or

- the classes in the project that are annotated (if the JPA project property "Discover annotated classes automatically" is activated)

Obviously, a class in another project can be referenced by a class in the current project. If the referenced class is listed in the persistence.xml file, Dali will process its annotations etc. If the referenced class is not listed, Dali will ignore the annotations. This is a feature. :-) You may not want Dali to process the annotations in the other project, and if Dali did there would be no way to ignore and/or override the annotations.

Could you give an example of the classes you are talking about and the sort of validation you expect?