huahsin68
huahsin68

Reputation: 6989

mappingResources couldn't find the mapping file

I have my hibernate configuration files locate under a resources/hibernate directory folder. resources diretory folder is a source folder. When I declare mappingResources in Spring configuration like this:

<property name="mappingResources">
   <list>
      <value>classpath:hibernate/PojoA.hbm.xml</value>
   </list>
</property>

I got an error mention that PojoA.hbm.xml doesn't exists. May I know how this can be fix?

Upvotes: 0

Views: 210

Answers (1)

zdesam
zdesam

Reputation: 2976

Try this one

<property name="mappingResources">
   <list>
      <value>hibernate/PojoA.hbm.xml</value>
   </list>
</property>

Upvotes: 1

Related Questions