Пример #1
0
 @PUT("touched")
 public List<Child> touchCollection(IdRef<Parent> parentId) {
   List<Child> childs = yawp(Child.class).from(parentId).order("name").list();
   for (Child child : childs) {
     child.setName("touched " + child.getName());
   }
   return childs;
 }
Пример #2
0
 @PUT("touchedParams")
 public Child touchParams(IdRef<Child> id, Map<String, String> params) {
   Child child = id.fetch();
   child.setName("touched " + child.getName() + " by " + params.get("arg"));
   return child;
 }
Пример #3
0
 @PUT("touched")
 public Child touchObject(IdRef<Child> id) {
   Child child = id.fetch();
   child.setName("touched " + child.getName());
   return child;
 }