45678910111213
import generated.Item; public class MyHandler extends GeneralizedFieldHandler { public Object convertUponGet(Object arg0) { Item i = new Item(); MyItem mi = (MyItem) arg0; i.setName(mi.getName()); return i; }
11121314151617181920
i.setName(mi.getName()); return i; } public Object convertUponSet(Object arg0) { Item i = (Item) arg0; MyItem mi = new MyItem(); mi.setName(i.getName()); return mi; }