Made Resource a JPA entity