All,
We have an environment with modules or components. I'd like to have each
component have it's own hibernate mapping files. When you create a
sessionFactory, you list the *.hbm.xml as a list for the mappingResources.
Getting the unit tests for each module to work against these hibernate
*.hbm.xml's is easy enuf, but what does one do when you have to aggregate all
of the xml into one applicationContext at the web level (for all the
components)?
What I'd like to do is to be able to create a sessionFactory that took as a
mappingResource a list of named lists, where each list represented each of the
modules' hibernate mapping files. This method (I suppose on
LocalSessionFactoryBean?) would take a list of lists and unroll them all into
a single list of mappingResources. Am I on the right track, or is there an
easier way, with some existing plumbing.
/thanks, hba
|