ASObject 转化成泛型问题
别人给我传了一个ASObject
打印出来后是这样的
ASObject(18482941){detail=yhyhgtgtgt, alert=[ASObject(29426688){alertPhone=4, matchPattern=>, email=4, matchContent=4, alertTypeid=1, alertDeal=4, alertDepartment=4, alertCause=4, mx_internal_uid=DF5435CE-33B5-833E-B013-1ACA4185F5E2}], name=yhyhyhgtgtgtgt, get_frequency=, enable=0, processid=hyyhyhtggtgt}
如何转成一个 vo process
process
private Integer id;
private Date createDate;
private String createUser ;
private String lastUser ;
private Date updateDate;
private String enable;
private String get_frequency;
private String name;
private String detail ;
private String processid ;
private String xml ;
private Set<Alert> alert =new HashSet<Alert> ();
alert
private Integer id;
private Date createDate;
private String createUser ;
private String lastUser;
private Date updateDate ;
private String alertCause ;
private String alertDeal ;
private String matchContent ;
private String matchPattern ;
private Integer alertTypeid;
private Integer processid;
private String isBelongProcess;
private String alertDepartment ;
private String email ;
private String alertPhone ;
------解决方案--------------------
兄弟 看看这个http://nlslzf.iteye.com/blog/438596
可能有帮助
------解决方案--------------------
只能一个一个赋值吧。。。
Java code
private process convert(ASObject obj) {
process proc = new process();
proc.name = obj.name;
......
return proc;
}