AnnotationSessionFactoryBean and annotatedPackages prop
Hi, using Spring2.0 and Hibernate3.2.1.GA, whenever I set the annotatedPackages prop on a AnnotationSessionFactoryBean, it does'nt see my annotated @Entity classes.
However, this works :
But this one really doesn't :
Is it a known problem ? My model classes are NOT in a separate .jar, btw.
Hibernate annotatedPackages entity names
I am using the annotatedPackages property and it does indeed magically find all my Entity classes and map them correctly to the database tables.
However, the entity names are set to the fully qualified names of the entity classes instead of the simple unqualified name of the class which is the default using annotatedClasses and is atetd to be the default for the Entity annotation.
Explicitly setting the entity name to the simple name of the class does not work either. The entity is still mapped using the fully qualified name of the class.
Can anybody help me with this? All my queries are written using the simple name of the entity class, and the fully qualified class name is MUCH to long to write everywhere :)