<mapping resource="com/mypackage/User.hbm.xml" />
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?