@Entity
public class Employee {
@Id
@Column(name="EMP_ID")
private int id;
@Column(name="EMP_NAME")
private String name;
@Column(name="EMP_SALARY")
private long salary;
public Employee() {}
public Employee(int id) {
this.id = id;
}
public int getId() { return id; }
public void setId(int id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public long getSalary() {
return salary;
}
public void setSalary (long salary) {
this.salary = salary;
}
}
No comments:
Post a Comment