Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this template, choose Tools | Templates
- * and open the template in the editor.
- */
- package uk.co.jmkg.jaxrstesting.model;
- import java.util.ArrayList;
- import java.util.Date;
- import java.util.List;
- import javax.xml.bind.annotation.XmlElement;
- import javax.xml.bind.annotation.XmlRootElement;
- /**
- *
- * @author jamesgreen
- */
- @XmlRootElement
- public class Customer {
- private int id;
- private String firstName;
- private String lastName;
- private Date dob;
- private List<Bill> bills;
- public Date getDob() {
- return dob;
- }
- public void setDob(Date dob) {
- this.dob = dob;
- }
- public String getFirstName() {
- return firstName;
- }
- public void setFirstName(String firstName) {
- this.firstName = firstName;
- }
- public int getId() {
- return id;
- }
- public void setId(int id) {
- this.id = id;
- }
- public String getLastName() {
- return lastName;
- }
- public void setLastName(String lastName) {
- this.lastName = lastName;
- }
- @XmlElement
- public List<Bill> getBills() {
- if (bills == null)
- bills = new ArrayList<Bill>();
- return bills;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement