Hibernate configuration - session factory scanning?
- by Marcus
We have this hibernate.cfg.xml file. Is there a way to tell Hibernate to just scan a directory instead of having to add an entry here for each class?
<hibernate-configuration>
<session-factory>
<mapping class="com.abc.domain.model.A" />
<mapping class="com.abc.domain.model.B" />
<mapping class="com.abc.domain.model.C" />
<mapping class="com.abc.domain.model.D" />
<mapping class="com.abc.domain.model.E" />
</session-factory>
</hibernate-configuration>