SQL
创建员工表
CREATE TABLE tb1_employee(
id INT(11) PRIMARY KEY AUTO_INCREMENT,
last_name VARCHAR(255),
gender CHAR(1),
email VARCHAR(255)
)
项目结构
Employee
package com.atguigu.mybatis.bean;
/**
* @authod Jia Junhao
* @create 2020-10-03-10:27
*/
public class Employee {
private Integer id;
private String lastName;
private String email;
private String gender;
@Override
public String toString() {
return "Employee{" +
"id=" + id +
", lastName='" + lastName + '\'' +
", email='" + email + '\'' +
", gender='" + gender + '\'