Rename package

This commit is contained in:
David Morley
2016-04-07 06:17:57 -05:00
parent 44eca5ba04
commit 9630170b03
30 changed files with 54 additions and 170 deletions
@@ -0,0 +1,51 @@
package com.baeldung.model;
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 + "]";
}
}
@@ -0,0 +1,19 @@
package com.baeldung.model;
import com.baeldung.aop.annotations.Entity;
@Entity
public class Foo {
private Long id;
private String name;
public Foo(Long id, String name) {
this.id = id;
this.name = name;
}
@Override
public String toString() {
return "Foo{" + "id=" + id + ", name='" + name + '\'' + '}';
}
}
@@ -0,0 +1,32 @@
package com.baeldung.model;
public class User {
private String firstname;
private String lastname;
private String emailId;
public String getFirstname() {
return firstname;
}
public void setFirstname(final String firstname) {
this.firstname = firstname;
}
public String getLastname() {
return lastname;
}
public void setLastname(final String lastname) {
this.lastname = lastname;
}
public String getEmailId() {
return emailId;
}
public void setEmailId(final String emailId) {
this.emailId = emailId;
}
}