public class EntityFinder extends Object
| Constructor and Description |
|---|
EntityFinder() |
| Modifier and Type | Method and Description |
|---|---|
static Set<PackageVO> |
findAllEntities(Collection<String> basePackages)
This method will find all the entities and named queries based on the list of provided package names.
|
public static Set<PackageVO> findAllEntities(Collection<String> basePackages) throws ClassNotFoundException
This method uses reflection to find all objects annotated with Entity or MappedSuperclass. It
will only look in the packages and subpackages which are provided in the basePackages parameter.
This method will also extract all the named queries (both from NamedQuery and NamedQueries).
basePackages - the fully qualified names of the packages where to look for the entities.ClassNotFoundException - this should never occurCopyright © 2012-2013. All Rights Reserved.