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;
}
}