1、首先是跟表对应的对象
package test;
public class Customer {
private Integer id;
private String customerName;
private String address;
private String zipCode;
private String linkMan;
private String phone;
private String mobilePhone;
private String email;
private String remark;
private int active;
public Customer() {
super();
}
@Override
public String toString() {
return "ID: "+getId()+" CustomerName: "+getCustomerName();
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getCustomerName() {
return customerName;
}
public void setCustomerName(String customerName) {
this.customerName = customerName;
}
public String getAddress() {
return address;
}
public void setAddress(String address) {
this.address = add