In the section " / src / main / resources ) you should place" hibernate.cfg.xml ", you should place all the model mapping files in the same directory that you define the POJO model classes.
According to the directory structure you provided, this should look like:
foo ββββsrc ββββmain ββββjava β ββββorg β ββββme β ββββbar β ββββ[all your java Model source-files here] | Employee.java | Employee.hbm.xml | Customer.java | Customer.hbm.xml ββββresources ββββhibernate.cfg.xml
And you should reference / display all your model files in the hibernate.cfg.xml file as shown below;
<mapping resource="org/me/bar/Employee.hbm.xml"/> <mapping resource="org/me/bar/Customer.hbm.xml"/>
You can also check this out, grab my project folder,

source share