|
From: <jas...@ma...> - 2004-11-16 16:04:08
|
Fantastic! Many many thanks Ugo. I was sure there just had to be a cleaner way of doing it! :) I'd been scratching my head quite a bit over that one & couldn't see the wood for the trees - thanks again! On 16 Nov 2004, at 15:52, Ugo Cei wrote: > 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 > James ------- http://radio.weblogs.com/0112098/ |