I have successfully been able to run hiberante hitting my Oracle database with reads, inserts, deletes and updates. Problem is that I can't get the mapping xml files to load. Currently I'm loading each class individually that is obviously not workable for a large scale project.
I tried specifying the files in the configuration file without luck with these different attempts: <mapping resource="/com/mypackage/User.hbm.xml" /> <mapping resource="com/mypackage/User.hbm.xml" /> <mapping file="com/mypackage/User.hbm.xml" /> <mapping file="/com/mypackage/User.hbm.xml" />
Yes, the xml files are in the classpath and yes the xml files are properly formed since they work when loaded individually.
Works fine on the application I'm currently working on. As you know the mapping files and POJOs need to be in the classpath, matching their package structure. What actual exception are you seeing when you configure your SessionFactory?