Entities, JPA Repositories and Rest Services