package com.atguigu.mybatis.dao;import com.atguigu.mybatis.hello.Employe;
public interface EmployeMapper {
public Employe getEmployebyid(Integer id);
public boolean addEmp(Employe employe);
public void updateEmp(Employe employe);
public void deleteEmpByid(Integer id);}
实体
package com.atguigu.mybatis.hello;
public class Employe {
private Integer id;
private String lastName;
private String gender;
private String email;
public Integer getId(){returnid;}
public void setId(Integer id){
this.id =id;}
public String getLastName(){return lastName;}
public void setLastName(String lastName){
this.lastName = lastName;}
public String getGender(){return gender;}
public void setGender(String gender){
this.gender = gender;}
public String getEmail(){return email;}
public void setEmail(String email){
this.email = email;}
public Employe(Integer id, String lastName, String gender, String email){
super();
this.id =id;
this.lastName = lastName;
this.gender = gender;
this.email = email;}
public Employe(){
super();
// TODO Auto-generated constructor stub
}
@Override
public String toString(){return"Employe [id=" + id + ", lastName=" + lastName + ", gender=" + gender + ", email=" + email + "]";}}