Hibernate

Write first java persistance class
Previous Home Next

Step 2:

Create first java persistance class.

Emp.java

package r4r;
public class Emp {
int id;
String name,job;
int salary;
public Emp() {
super();
}
public Emp(String 
name, String job, 
int salary) {
super();
this.name = name;
this.job = job;
this.salary = salary;
}
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 String getJob() {
return job;
}
public void setJob(String 
job) {
this.job = job;
}
public int getSalary() {
return salary;
}
public void setSalary(int 
salary) {
this.salary = salary;
}
}
Previous Home Next

Tolal:0 Click:

Show All Comments

Did not find what you were looking for leave your name and message. We will revert within 24 hours
Name:
eMail:
Comment / Feedback: