working hibernate integration