Autodiscovery of Hibernate Mapping Files in Spring
Wednesday, September 06th, 2006I’m a big fan of autodiscovery – I dislike having to specify information that can be inferred programmatically. So along those lines, here’s a subclass of Spring’s LocalSessionFactoryBean
(AutodiscoverSessionFactoryBean
) that finds Hibernate hbm.xml mapping files in your classpath.
(more…)