Some changes in  hibernate.cfg.xml and ControllerImpl