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 @   野鹤闲人  阅读(172)  评论(0编辑  收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示