Add resource folder to your classpath.
In eclipse go to properties of your project. Press Alt+Enter on root folder.
Then select
Java Build Path item and locate
Source tab. Under that tab there is button
Add Folder to specify folder to add to classpath.
Then reference contact.hbm.xml starting from folder under resources. In your case it is direct child, so