daisyallen wrote:
As according to me try this ,
<hibernate-configuration>
<session-factory name="MySessionFactory">
<!-- some hibernate properties here -->
<!--This below works fine-->
<mapping resource="A.hbm.xml"/>
<!--This doesn't-->
<mapping resource="/dir/B.hbm.xml"/>
</session-factory>
</hibernate-configuration>
And take care of this our classpath you must give the path of the mapping file relative to this therefore the front / should be removed.
Thanks you for the reply. It really useful for me.