@PUT("touched") public List<Grandchild> touchCollection(IdRef<Child> childId) { List<Grandchild> grandchilds = yawp(Grandchild.class).from(childId).list(); for (Grandchild grandchild : grandchilds) { grandchild.setName("touched " + grandchild.getName()); } return grandchilds; }
@PUT("touched") public Grandchild touchObject(IdRef<Grandchild> id) { Grandchild grandchild = id.fetch(); grandchild.setName("touched " + grandchild.getName()); return grandchild; }