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