transient

********

1,@Transient

//产品政策详情

public class TZdCpzcXq implements java.io.Serializable {

private TZdCpzc cpzc; //产品政策

@Transient
public TZdCpzc getCpzc() {
return cpzc;
}

public void setCpzc(TZdCpzc cpzc) {
this.cpzc = cpzc;
}

}

public class FyjhAction extends ProjectBaseAction<Object> {
public
String list() throws Exception { page=zcxqService.getPage(page, zcxqModel); List<TZdCpzcXq> list=page.getResult(); for(TZdCpzcXq zcxq:list){ TZdCpzc temp=zcService.getById(zcxq.getZcid()); //产品政策 zcxq.setCpzc(temp); } return SUCCESS; }
}

 

********

posted @ 2014-11-17 13:07  野鹤闲人  阅读(171)  评论(0编辑  收藏  举报