title: Hibernate configuration - session factory scanning?
body: <p>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?</p>
  
  <pre><code>&lt;hibernate-configuration&gt;
     &lt;session-factory&gt;
        &lt;mapping class="com.abc.domain.model.A" /&gt;
        &lt;mapping class="com.abc.domain.model.B" /&gt;
        &lt;mapping class="com.abc.domain.model.C" /&gt;
        &lt;mapping class="com.abc.domain.model.D" /&gt;
        &lt;mapping class="com.abc.domain.model.E" /&gt;
     &lt;/session-factory&gt;
  &lt;/hibernate-configuration&gt;
  </code></pre>