/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later
* See the lgpl.txt file in the root directory or http://www.gnu.org/licenses/lgpl-2.1.html
*/
package org.hibernate.test.naturalid.composite;
import javax.persistence.Embeddable;
/**
* @author Steve Ebersole
*/
@Embeddable
public class PostalCode {
private String code;
private String country;
public PostalCode() {
}
public PostalCode(String code, String country) {
this.code = code;
this.country = country;
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public String getCountry() {
return country;
}
public void setCountry(String country) {
this.country = country;
}
}