Source code: org/hibernate/test/ondelete/Person.java
1 //$Id: Person.java 7119 2005-06-12 22:03:30Z oneovthafew $
2 package org.hibernate.test.ondelete;
3
4
5 /**
6 * @author Gavin King
7 */
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 /**
15 * @return Returns the address.
16 */
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 /**
35 * @return Returns the sex.
36 */
37 public char getSex() {
38 return sex;
39 }
40 /**
41 * @param sex The sex to set.
42 */
43 public void setSex(char sex) {
44 this.sex = sex;
45 }
46 /**
47 * @return Returns the id.
48 */
49 public long getId() {
50 return id;
51 }
52 /**
53 * @param id The id to set.
54 */
55 public void setId(long id) {
56 this.id = id;
57 }
58 /**
59 * @return Returns the identity.
60 */
61 public String getName() {
62 return name;
63 }
64 /**
65 * @param identity The identity to set.
66 */
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 }