fix hibernate integration