Spring with JPA and Restful web services