Hi during the execution of simple Java Program Configuration file not able to load the .hbm file. I have done few example in netbeans but in eclipse this encountered. Below is my code under eclipse java project.
In your hibernate.cfg.xml file, below line is not valid.
For class attribute, use class name as below
<mapping class="com.fooPackage.AnotherModelClass" />
Also, if you already mention the mapping file name or class name in the hibernate.cfg.xml, then below line is redundant.
Configuration cfg = new Configuration().addResource("person.hbm.xml").configure();