Add hbm file hibernate configuration file

Add hbm file hibernate configuration file

If you want to add newly create *.hbm file to your hibernate.cfg.xml file please use sample tag for it. Here Person.hbm.xml is file name which is inside com/javahonk/model folder

<mapping resource="com/javahonk/model/Person.hbm.xml" />

For more information please refer this hibernate tutorial

Leave a Reply

Your email address will not be published. Required fields are marked *