Added by on 2013-07-05

The Employee class should look like this


@Entity
public class Employee{
	private int empId;
	private String empName;
	
	@Id
	public int getEmpId(){
		return empId;
	}
	public void setEmpId(int empId){
		this.empId = empId;
	}
	public String getEmpName(){
		return empName;
	}
	public void setEmpName(int empName){
		this.empName = empName;
	}	

}

Category:

Hibernate

Tags:

, ,

Leave a Reply

Your email address will not be published. Required fields are marked *

*


*