#1460 use reflection to load Hibernate version specific classes

This adds support for Hibernate 4.2 again by loading the specific classes with reflection. Sample project with Hibernate 4.2 for integration tests also included.