Archive for September 6th, 2006

Autodiscovery of Hibernate Mapping Files in Spring

Wednesday, September 06th, 2006

I’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.

Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 License.