spring hibernate mappingDirectoryLocations
Posted on 2011-05-06
I was reading folowing lines. And I did not understand clearly.
if your application grows and you have dozens, if not hundreds, of persistent
classes? It would be cumbersome to configure them all in this fashion.
Fortunately, Spring offers you an alternative. You can also configure the mapping-
DirectoryLocations property with a path that is a subset of your application’s
class path, and Spring will configure the SessionFactory with every *.hbm.xml it
finds in this path. For example, assuming that all the persistent classes we want to
configure are contained in the com.springinaction.training.model package, we
would configure our SessionFactory like this:
<bean id="sessionFactory" class="org.springframework.
what mappingDirectoryLocations does and how it is used.
Any ideas, resources,sample code,links, highly appreciated. thanks in advance.