Fix for upgraded hibernate versions.