model and hibernate config