created hibernate cfg and entity class