Email = email;
}
public String getPerference() {
return perference;
}
public void setPerference(String perference) {
this.perference = perference;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public String getDescription() {
return Description;
}
public void setDescription(String description) {
Description = description;
}
@Override
public String toString() {
return "Customer [id=" + id + ", name=" + name + ", gender=" + gender
+ ", birthday=" + birthday + ", cellphone=" + cellphone
+ ", Email=" + Email + ", perference=" + perference + ", type="
+ type + ", Description=" + Description + "]";
}
}
dao层:
Dao接口:
package cn.csdn.customer.dao;
import java.util.List;
public interface Dao<T,PK> {
/*插入实体*/
boolean insert(T entity);
/*更新实体*/
boolean update(T entity);
/*删除实体*/
boolean delete(T entity);
/*查询所有实体*/