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 :
<property name="annotatedClasses">
<list>
<value>me.model.Customer</value>
</list>
</property>
But this one really doesn't :
<property name="annotatedPackages">
<list>
<value>me.model</value>
</list>
</property>
Is it a known problem ? My model classes are NOT in a separate .jar, btw.
Thanks
Hibernate annotatedPackages entity names
Hi!
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 :)
Thank you,
Uwe Kubosch
Norway