JPA mapping and REST