Adding autoregeneration of hibernate.cfg.xml