コード例 #1
0
 @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;
 }
コード例 #2
0
 @PUT("touched")
 public Grandchild touchObject(IdRef<Grandchild> id) {
   Grandchild grandchild = id.fetch();
   grandchild.setName("touched " + grandchild.getName());
   return grandchild;
 }