package com.oreilly.springdata.jdbc.domain; /** */ public class Address extends AbstractEntity { private String street, city, country; public Address() { } public Address(String street, String city, String country) { this.street = street; this.city = city; this.country = country; } public String getCountry() { return country; } public void setCountry(String country) { this.country = country; } public String getStreet() { return street; } public void setStreet(String street) { this.street = street; } public String getCity() { return city; } public void setCity(String city) { this.city = city; } @Override public String toString() { return street + ", " + city + " " + country ; } }