Using REST and JPA2