jpashop : entity (embedded type)
This commit is contained in:
@@ -11,4 +11,13 @@ public class Address {
|
||||
private String city;
|
||||
private String street;
|
||||
private String zipcode;
|
||||
|
||||
protected Address() {
|
||||
}
|
||||
|
||||
public Address(String city, String street, String zipcode) {
|
||||
this.city = city;
|
||||
this.street = street;
|
||||
this.zipcode = zipcode;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user