Unfortunately, I depend of orther projects of my enterprise and I canno't update their Hibernate version. 5th version being non-retrocompatible I'm stuck with 4th version.