Add hibernate 4 support in JPY