2. com.springmvc.domain 패키지에서 Address 클래스를 생성하고 다음 내용을 작성합니다.
코드 15-4 Address.java
package com.springmvc.domain;
import java.io.Serializable;
public class Address implements Serializable {
private static final long serialVersionUID = 613846598817670033L;
➊
private String detailName; // 세부 주소
private String addressName; // 주소
private String country; // 국가명
private String zipCode; // 우편번호
➋
public String getDetailName() {
return detailName;
}
public void setDetailName(String detailName) {
this.detailName = detailName;
}
public String getAddressName() {
return addressName;
}
public void setAddressName(String addressName) {
this.addressName = addressName;
}
public String getCountry() {
return country;
}
public void setCountry(String country) {
this.country = country;
}
public String getZipCode() {
return zipCode;
}
public void setZipCode(String zipCode) {
this.zipCode = zipCode;
}