title: Configuring hibernate.cfg.xml file
body: <p>I am new to Hibernate, so I have few dumb questions hope someone would be able to assist me. I have a query in regards to configuring hibernate file i.e. hibernate.cfg.xml file. Normally we configure it as below :</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="hbm2ddl.auto"&gt;update&lt;/property&gt;  
      &lt;property name="dialect"&gt;org.hibernate.dialect.Oracle9Dialect&lt;/property&gt;  
      &lt;property name="connection.url"&gt;jdbc:oracle:thin:@localhost:1521:xe&lt;/property&gt;  
      &lt;property name="connection.username"&gt;system&lt;/property&gt;  
      &lt;property name="connection.password"&gt;oracle&lt;/property&gt;  
      &lt;property name="connection.driver_class"&gt;oracle.jdbc.driver.OracleDriver&lt;/property&gt;  
  &lt;mapping resource="employee.hbm.xml"/&gt;  
  &lt;/session-factory&gt;  
  
  &lt;/hibernate-configuration&gt;
  </code></pre>
  
  <p>Where the  considers relevant mapping files. Lets say I have another mapping file, call it company.hbm.xml file and have a one-to-many relationship with  employee.hbm.xml file. So, as and when the number of mapping files increases we include them into  tag. </p>
  
  <p>Query : How is it different to include multiple mapping files with individual  tag from having just a single mapping file with all the relevant mappings.</p>
  
  <p>Appreciate your response</p>