请问这里的set是从哪里给它set,request中吗,谢谢了!

public class Order {
private String oid;
private Date ordertime;
private double total;
private int state;
private User owner;
private String address;

private List orderItemList;
public List getOrderItemList() {
return orderItemList;
}
public void setOrderItemList(List orderItemList) {
this.orderItemList = orderItemList;
}
public String getOid() {
return oid;
}
public void setOid(String oid) {
this.oid = oid;
}
public Date getOrdertime() {
return ordertime;
}
public void setOrdertime(Date ordertime) {
this.ordertime = ordertime;
}
public double getTotal() {
return total;
}
public void setTotal(double total) {
this.total = total;
}
public int getState() {
return state;
}
public void setState(int state) {
this.state = state;
}
public User getOwner() {
return owner;
}
public void setOwner(User owner) {
this.owner = owner;
}
public String getAddress() {
return address;
}
public void setAddress(String address) {
this.address = address;
}
} 请问大神,这是Domain中的set,get方法,请问这里的set是从哪里给它set,request中吗

1个回答

很多地方都可以设置,比如你的BO(Business Object)或者ORM(Object-Releatationship Mapping)库,或者你自己的代码。

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问