hibernate config and demo