1 package org.hibernate.test.ondelete; 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 private Salesperson salesperson; 14 17 public Address getAddress() { 18 return address; 19 } 20 21 public void setAddress(String string) { 22 this.address.address = string; 23 } 24 25 public void setZip(String string) { 26 this.address.zip = string; 27 } 28 29 public void setCountry(String string) { 30 this.address.country = string; 31 } 32 33 34 37 public char getSex() { 38 return sex; 39 } 40 43 public void setSex(char sex) { 44 this.sex = sex; 45 } 46 49 public long getId() { 50 return id; 51 } 52 55 public void setId(long id) { 56 this.id = id; 57 } 58 61 public String getName() { 62 return name; 63 } 64 67 public void setName(String identity) { 68 this.name = identity; 69 } 70 71 public Salesperson getSalesperson() { 72 return salesperson; 73 } 74 75 public void setSalesperson(Salesperson salesperson) { 76 this.salesperson = salesperson; 77 } 78 79 } 80 | Popular Tags |