1 28 import java.util.Set ; 29 30 34 public class Address 35 { 36 Long id; 37 38 String firstName; 39 40 String lastName; 41 42 String street; 43 44 String city; 45 46 Set documents; 47 48 public String getCity() 49 { 50 return city; 51 } 52 53 public void setCity(String city) 54 { 55 this.city = city; 56 } 57 58 public String getFirstName() 59 { 60 return firstName; 61 } 62 63 public void setFirstName(String firstName) 64 { 65 this.firstName = firstName; 66 } 67 68 public Long getId() 69 { 70 return id; 71 } 72 73 protected void setId(Long id) 74 { 75 this.id = id; 76 } 77 78 public String getLastName() 79 { 80 return lastName; 81 } 82 83 public void setLastName(String lastName) 84 { 85 this.lastName = lastName; 86 } 87 88 public String getStreet() 89 { 90 return street; 91 } 92 93 public void setStreet(String street) 94 { 95 this.street = street; 96 } 97 98 public Set getDocuments() 99 { 100 return documents; 101 } 102 103 public void setDocuments(Set documents) 104 { 105 this.documents = documents; 106 } 107 108 public String toString() 109 { 110 return id + ":" + firstName + "," + lastName + "," + street + "," + city; 111 } 112 } 113 | Popular Tags |