title: hibernate.cfg.xml mapping resources
body: <p>Is there any way to use a regular expression (or just *) to tell Hibernate to pick up all of the hbm.xml files in a given directory, or even in the project?  I just reverse engineered my database, and don't feel like specifying a hundred plus tables with &lt;mapping resource="..."&gt;</p>
  
  <p>I'm using Maven to run hbm2java.  Do I need to indicate something in my component configuration?</p>
  
  <p>My hibernate.cfg.xml currently looks like this:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!DOCTYPE hibernate-configuration PUBLIC
      "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
      "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"&gt;
  &lt;hibernate-configuration&gt;
      &lt;session-factory&gt;
          &lt;property name="hibernate.connection.driver_class"&gt;oracle.jdbc.driver.OracleDriver&lt;/property&gt;
          &lt;property name="hibernate.connection.url"&gt;jdbc:oracle:thin:@....&lt;/property&gt;
          &lt;property name="hibernate.connection.username"&gt;hithere&lt;/property&gt;
          &lt;property name="hibernate.connection.password"&gt;shhhh&lt;/property&gt;
          &lt;property name="hibernate.default_schema"&gt;foobar&lt;/property&gt;
          &lt;property name="hibernate.dialect"&gt;org.hibernate.dialect.Oracle10gDialect&lt;/property&gt;
  
          &lt;mapping resource="com/foo/bar/db/Blip.hbm.xml" /&gt;
          &lt;mapping resource="com/foo/bar/db/Blap.hbm.xml" /&gt;
          &lt;mapping resource="com/foo/bar/db/Blop.hbm.xml" /&gt;
      &lt;/session-factory&gt;
  &lt;/hibernate-configuration&gt;
  </code></pre>