Package « Annotation « JPA Q&A





1. Add Annotated Class in Hibernate by adding all classes in some package. JAVA    stackoverflow.com

is there any way to loop (e.g. via for) all classes with are in some package? I have to addAnnotatedClass(Class c) on AnnotationConfiguration. Doing it like this:

    AnnotationConfiguration annotationConfiguration.addAnnotatedClass(AdditionalInformation.class);
  ...

2. package level annotations    forum.hibernate.org