title: Hibernate Tutorial - Where to put Mapping File?
body: <p>I am following this interesting tutorial on hibernate here: <a href="http://www.tutorialspoint.com/hibernate/hibernate_native_sql.htm" rel="noreferrer">http://www.tutorialspoint.com/hibernate/hibernate_native_sql.htm</a> </p>
  
  <p>This tutorial, however, neglects to mention where to put these files. I am using a folder structure of a basic Maven project. </p>
  
  <p>The folder structure is as follows: </p>
  
  <pre><code>foo
  └───src
      └───main
          ├───java
          │   └───org
          │       └───me
          │           └───bar 
          │               └───[all my java source-files here]
          └───resources
              ├───hibernate.cfg.xml
              └───hiber
                  └───Employee.hbm.xml
  </code></pre>
  
  <p>The folder <code>main</code> has <code>java</code> and <code>resources</code> at the same level if this is not obvious by the ASCII art. (EDIT: now it is.)</p>
  
  <p>Where should the mapping file (Employee.hbm.xml) go? The file is referenced in the configuration file (hibernate.cfg.xml). </p>
  
  <p>Thank-you for reading this. </p>
  
  <p>Regards,</p>