目录及hibernate jar包和MySQL-connector文件
![](https://i-blog.csdnimg.cn/blog_migrate/309b49d810101c78ee1d35b1f9ff8e16.png)
实体类
package com.edu.entity;
public class Person {
private Integer id;
private String name;
private String sex;
private int age;
public Person() {
super();
}
public Person(Integer id, String name, String sex, int age) {
super();
this.id = id;
this.name = name;
this.sex = sex;
this.age = age;
}
public Person(String name,String sex,int age){
this.name=name;
this.sex=sex;
this.age=age;
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getSex() {
return sex;
}
public void setSex(String sex) {
this.sex = sex;
}
public int getAge