db models and hibernate dependency