|
From: Ugo C. <u....@cb...> - 2004-11-16 15:53:06
|
jas...@ma... wrote:
> I'm sure I spotted someone mention a custom bean configuration thingy
> that could be used in your Spring.xml to fix this - but tried searching
> the archives and couldn't spot it.
>
> Basically I'd like to be able to do this...
>
> <bean id="sessionFactory"
> class="org.springframework.orm.hibernate.LocalSessionFactoryBean">
> <property name="dataSource">
> <ref local="dataSource"/>
> </property>
> <property name="mappingResources">
> <list>
> <value>**/*.hbm.xml</value>
> </list>
> </property>
> </bean>
Try this:
<property name="mappingDirectoryLocations">
<list>
<value>classpath:</value>
</list>
</property>
HTH,
Ugo
|