当我运行测试时返回给我以下错误:线程“main”中的异常org.hibernate.MappingException

时间:2017-01-21 07:34:40

标签: java hibernate

Exception in thread "main" org.hibernate.MappingException: Unknown entity: sessionfactory.EmployeeDetails

package sessionfactory;

public class EmployeeDetails {

    private int empno;
    private String empName, Email;
    private double salary;

    public int getEmpno() {
        return empno;
    }

    public void setEmpno(int empno) {
        this.empno = empno;
    }

    public String getEmpName() {
        return empName;
    }

    public void setEmpName(String empName) {
        this.empName = empName;
    }

    public String getEmail() {
        return Email;
    }

    public void setEmail(String email) {
        Email = email;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }
}

0 个答案:

没有答案