hibernate method calls in dao classes had been replaced by jpa methods calls