I have a very peculiar problem:
I'm using Hibernate in Maven based project inside of Eclipse, and I'm checking Hibernate console configurations in JBoss's Hibernate Tools plugin.
I have identical configuration for two projects:
Code:
<persistence-unit name="mogulhibernate04">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<class>com.mogul.hibernatetutorial04.model.User2</class>
<properties>
<!-- mappings -->
<property name="hibernate.archive.autodetection" value="class"/>
In one project I have all classes with annotations listed/found in the Hibernate console (created in the Eclipse's Hibernate perspective).
And in the second it's only one explicitly specified that is listed/found!
I can't see no obvious reason for not finding all annotated classes in the second project.
Any ideas? Classpath, maybe?