|
From: <jas...@ma...> - 2004-11-16 15:02:37
|
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>
rather than have to name each single mapping file by name. e.g..
<property name="mappingResources">
<list>
<value>com/acme/model/Cheese.hbm.xml</value>
<value>com/acme/model/Pizza.hbm.xml</value>
<value>com/acme/model/Beer.hbm.xml</value>
</list>
</property>
etc.
Is there such a wildcard configuration thingy available right now to
solve this? I'm aware of the property based
PropertyPlaceholderConfigurer but wondered if anyone knew of another
solution to this?
James
-------
http://radio.weblogs.com/0112098/
|