Hi,
Apologies if this is a double post. I posted this yesterday, but it doesn't appear to have been created properly.
Our Java applications includes multiple components using Hibernate for persistence and is wired together using Spring. To date all modules have used independent Hibernate Session Factories configured with
Module 1: Employees.jar
employee.hbm.xml
Module 2: Payments.jar
Payment.hbm.xml
If we want our Employees module to reference Payments then we need someway to reference the mapping files in Payments.jar from Employees.jar. But given Payments.jar may include 20 mappings files we don’t want to enumerate these in 2 places.
What is the recommended method of modularising and composing components using Hiberate & Spring?
All comments welcome.
Regards,
James
|