「BeanUtils」の編集履歴(バックアップ)一覧はこちら
「BeanUtils」(2006/03/06 (月) 02:48:34) の最新版変更点
追加された行は緑色になります。
削除された行は赤色になります。
** reading properties
import org.apache.commons.beanutils.PropertyUtils;
public class Prop {
public static void main(String[] args) throws Exception {
Bean0 b0 = new Bean0();
PropertyUtils.setProperty(b0, "id", new Long(10));
PropertyUtils.setProperty(b0, "name", "John");
PropertyUtils.setProperty(b0, "age", 20);
System.out.println(b0);
}
}