예제 #1
0
 public Macro create(int id, String name) {
   Macro m = (Macro) db.createModel(NAME);
   m.setId(id);
   m.setName(name);
   update(m);
   return m;
 }
예제 #2
0
 public Macro create(int id) {
   Macro m = (Macro) db.createModel(NAME);
   m.setId(id);
   update(m);
   return m;
 }