@@ -0,0 +1,1699 @@
+package devopsdistilled.operp.server.data.entity.commons;%0A%0Aimport javax.persistence.Entity;%0Aimport javax.persistence.GeneratedValue;%0Aimport javax.persistence.GenerationType;%0Aimport javax.persistence.Id;%0A%0Aimport devopsdistilled.operp.server.data.entity.Entiti;%0A%0A@Entity%0Apublic class Address extends Entiti%3CLong%3E %7B%0A%0A%09private static final long serialVersionUID = -7373506476406558225L;%0A%0A%09@Id%0A%09@GeneratedValue(strategy = GenerationType.AUTO)%0A%09private Long addressId;%0A%0A%09private String country;%0A%09private String zone;%0A%09private String district;%0A%09private String city;%0A%09private String street;%0A%0A%09public Long getAddressId() %7B%0A%09%09return addressId;%0A%09%7D%0A%0A%09public void setAddressId(Long addressId) %7B%0A%09%09this.addressId = addressId;%0A%09%7D%0A%0A%09public String getCountry() %7B%0A%09%09return country;%0A%09%7D%0A%0A%09public void setCountry(String country) %7B%0A%09%09this.country = country;%0A%09%7D%0A%0A%09public String getZone() %7B%0A%09%09return zone;%0A%09%7D%0A%0A%09public void setZone(String zone) %7B%0A%09%09this.zone = zone;%0A%09%7D%0A%0A%09public String getDistrict() %7B%0A%09%09return district;%0A%09%7D%0A%0A%09public void setDistrict(String district) %7B%0A%09%09this.district = district;%0A%09%7D%0A%0A%09public String getCity() %7B%0A%09%09return city;%0A%09%7D%0A%0A%09public void setCity(String city) %7B%0A%09%09this.city = city;%0A%09%7D%0A%0A%09public String getStreet() %7B%0A%09%09return street;%0A%09%7D%0A%0A%09public void setStreet(String street) %7B%0A%09%09this.street = street;%0A%09%7D%0A%0A%09@Override%0A%09public Long id() %7B%0A%09%09return getAddressId();%0A%09%7D%0A%0A%09@Override%0A%09public String toString() %7B%0A%09%09StringBuilder address = new StringBuilder();%0A%09%09address.append(getStreet() + %22, %22 + getCity());%0A%09%09address.append(System.lineSeparator());%0A%09%09address.append(getDistrict() + %22, %22 + getZone());%0A%09%09address.append(System.lineSeparator());%0A%09%09address.append(getCountry());%0A%09%09return address.toString();%0A%09%7D%0A%0A%7D%0A

Add Address Entity