updated hibernate integration