1 package org.hibernate.test.joinedsubclass; 3 4 5 8 public class Person { 9 private long id; 10 private String name; 11 private char sex; 12 private Address address = new Address(); 13 16 public Address getAddress() { 17 return address; 18 } 19 20 public void setAddress(String string) { 21 this.address.address = string; 22 } 23 24 public void setZip(String string) { 25 this.address.zip = string; 26 } 27 28 public void setCountry(String string) { 29 this.address.country = string; 30 } 31 32 33 36 public char getSex() { 37 return sex; 38 } 39 42 public void setSex(char sex) { 43 this.sex = sex; 44 } 45 48 public long getId() { 49 return id; 50 } 51 54 public void setId(long id) { 55 this.id = id; 56 } 57 60 public String getName() { 61 return name; 62 } 63 66 public void setName(String identity) { 67 this.name = identity; 68 } 69 70 } 71 | Popular Tags |