首页 > 代码库 > transient

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; }
}

 

********

transient