google-code-export / simplejpa

Automatically exported from code.google.com/p/simplejpa
1 stars 0 forks source link

Enhance EntityManagerFactoryImpl to have ability to ignore classpath when looking for Entities #41

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Use libToScan parameter on EntityManagerFactoryImpl()

What is the expected output? What do you see instead?
Expected SimpleJPA to only process Entities in that library.  Instead the 
Annotation Scanner tried to process other entities in the classpath.

What version of the product are you using? On what operating system?
1.5 - Windows

Please provide any additional information below.
One possible resolution to this issue, is to add the ability to limit
the scope of the scanning to a package/class/library as opposed to
appending it.

Building from trunk I was able to add a boolean to the constructor to
specify whether or not to append on or use exclusively the libToScan
libraries.

Original issue reported on code.google.com by justin...@gmail.com on 30 Dec 2011 at 10:06