, , Spring.
Hibernate Interceptors, , / master/admin. , , , SQL, Hibernate, , . , .
Alternatively, you can try writing your own TransactionManager, using HibernateTransactionManageras a starting point, adding support for working with multiple session factories. However, this would mean that you really need to dive into Spring's internal ORM support, and this is what I tried, but then abandoned the first approach. I am sure that this can be done with moderate efforts, but the previous solution already performed this work for us.
source
share