title: separate mappingResources from spring hibernate LocalSessionFactoryBean
body: <p>Ok, I have this spring hibernate xml configuration.</p>
  
  <pre><code>&lt;bean id="sessionFactory"
      class="org.springframework.orm.hibernate3.LocalSessionFactoryBean"&gt;
      &lt;property name="dataSource" ref="dataSource" /&gt;
      &lt;property name="mappingResources"&gt;
          &lt;list&gt;
              &lt;value&gt;com/abc/def/a.xml&lt;/value&gt;
              &lt;value&gt;com/abc/def/b.xml&lt;/value&gt;
              &lt;value&gt;com/abc/def/c.xml&lt;/value&gt;
              &lt;!-- 
              And so on, about 50 xml for example
              How can I separate list value above into 5 file for example? 
              ex I have h1.xml (or h1.txt) that contain 
              &lt;value&gt;com/abc/def/a.xml&lt;/value&gt;
              &lt;value&gt;com/abc/def/b.xml&lt;/value&gt;
              I have h2.xml (or h2.txt) that contain 
              &lt;value&gt;com/abc/def/c.xml&lt;/value&gt;
              &lt;value&gt;com/abc/def/d.xml&lt;/value&gt;
              so the mappingResources just read from the files (more than 1) than contain all mapping objects
              --&gt;
          &lt;/list&gt;
      &lt;/property&gt;
      &lt;property name="hibernateProperties"&gt;
          &lt;props&gt;
              &lt;prop key="hibernate.dialect"&gt;org.hibernate.dialect.MySQLDialect&lt;/prop&gt;
              &lt;prop key="hibernate.show_sql"&gt;false&lt;/prop&gt;
              &lt;prop key="hibernate.cache.provider_class"&gt;org.hibernate.cache.OSCacheProvider&lt;/prop&gt;
              &lt;prop key="hibernate.cache.use_query_cache"&gt;true&lt;/prop&gt; 
          &lt;/props&gt;
      &lt;/property&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>I have commented the question in the xml configuration above.</p>
  
  <p>Thanks</p>