Hibernate batch processing implementation.