title: What is the use of session-factory name property in hibernate-configuration file
body: <p>In hibernate-cfg.xml file, as per my understanding </p>
  
  <blockquote>
    <p>hibernate-configuration can have only one session-factory and one or zero security tags</p>
  </blockquote>
  
  <p>if we configure multiple session-factory then we should get error </p>
  
  <p><code>"The content of element type "hibernate-configuration" must match "(session-factory,security?)</code></p>
  
  <p>So anyone tell me </p>
  
  <ol>
  <li><p>What is the use of the name property in session-factory tag in hibernate.cfg.xml file</p>
  
  <pre><code>&lt;session-factory name=""&gt;
  </code></pre></li>
  <li><p>In which scenario we can use it?</p></li>
  </ol>