52 lines
1.0 KiB
Java
Raw Normal View History

2016-04-07 06:17:57 -05:00
package com.baeldung.model;
2016-03-11 22:43:49 -05:00
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement
public class Employee {
private long id;
private String name;
private String contactNumber;
public Employee() {
super();
}
public Employee(final long id, final String name, final String contactNumber) {
this.id = id;
this.name = name;
this.contactNumber = contactNumber;
}
public String getName() {
return name;
}
public void setName(final String name) {
this.name = name;
}
public long getId() {
return id;
}
public void setId(final long id) {
this.id = id;
}
public String getContactNumber() {
return contactNumber;
}
public void setContactNumber(final String contactNumber) {
this.contactNumber = contactNumber;
}
@Override
public String toString() {
return "Employee [id=" + id + ", name=" + name + ", contactNumber=" + contactNumber + "]";
}
}