Thank you Karthik for your quick rely.
Below are the approaches I tried, but getting the same error in all the attempts
Source Structure:
Java Resources
--src
----config.db
--------database.properties
--------hibernate-cfg.xml
----config.db.mapping
--------userdetails.hbm.xml
WebContent
userdetails.hbm.xml:
=============
Product.java:
========