예제 #1
0
 public void formToMenu(Menu menu) {
   menu.setLevel(level);
   menu.setName(name);
   menu.setParentId(parentId);
   menu.setUri(uri);
   menu.setWeight(weight);
 }
예제 #2
0
 public void menuToForm() {
   setId(menu.getId());
   setLevel(menu.getLevel());
   setName(menu.getName());
   setParentId(menu.getParentId());
   setUri(menu.getUri());
   setWeight(menu.getWeight());
 }