i want to use Hiberante without Spring and i have some trobules with packagesToScan... Hibernate can not find my entities. I'm working with tomcat7.
This my configurazion:
<hibernate-configuration>
<session-factory>
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="hibernate.connection.password">password</property>
<property name="hibernate.connection.url">jdbc:mysql://localhost/ccc</property>
<property name="hibernate.connection.username">root</property>
<property name="hibernate.default_schema">ccc</property>
<property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="packagesToScan">com.ccc.db.entity</property>
</session-factory>
</hibernate-configuration>
I tried to move classes from build folder to WebContent/WEB-INF/classes but it doesn't work.