REST webservices using Jersey2 and HIbernate and mySQL