Esempio n. 1
0
 static {
   gen.model.mixinReference.Author.__bindToperson(
       parent -> {
         gen.model.mixinReference.Person e = parent.getPerson();
         if (e != null) {
           e.AuthorID = parent.getID();
         }
       });
 }
Esempio n. 2
0
 static {
   gen.model.mixinReference.Author.__bindTochildren(
       parent -> {
         int i = 0;
         for (gen.model.mixinReference.Child e : parent.getChildren()) {
           e.AuthorID = parent.getID();
           e.Index = i++;
         }
       });
 }