Hi,
This is my first posting to Hibernate. Thanks for Hibernate ! I am enjoying working through your tutorials.
Q: How can I load all classes in a package (without declaring each <mapping class="Class"/> ?
Q: Where can I find source and XML for the annotations examples (test/animals/orm.xml) ?
Hibernate version:
hibernate-3.2
hibernate-annotations-3.2.0.CR1
Mapping documents:
hibernate.cfg.xml
Code:
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<mapping package="test.animals"/>
<mapping class="test.Flight"/>
<mapping class="test.Sky"/>
<mapping class="test.Person"/>
<mapping class="test.animals.Dog"/>
<mapping resource="test/animals/orm.xml"/>
</session-factory>
</hibernate-configuration>