public class HibernateJtaTransactionManagerAdapter
Adapter for adding transaction controlling hooks for supporting
Hibernate's org.hibernate.engine.transaction.Isolater class's interaction with transactions
This is required when there is no real JTA transaction manager in use and Spring's
org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy is used.
Without this solution, using Hibernate's TableGenerator identity strategies will fail to support transactions.
The id generator will commit the current transaction and break transactional behaviour.
The javadoc of Hibernate's TableHiLoGenerator states this. However this isn't mentioned in the javadocs of other TableGenerators.