1 package org.apache.ojb.otm; 2 3 17 18 import java.io.Serializable ; 19 20 public class AddressDesc implements Serializable 21 { 22 23 private int id; 24 private String desc; 25 private int personId; 26 private Person person; 27 private int addressId; 28 private Address address; 29 30 public AddressDesc() 31 { 32 } 33 34 public AddressDesc(String desc, Address address) 35 { 36 this.desc = desc; 37 this.address = address; 38 } 39 40 public int getId() 41 { 42 return id; 43 } 44 45 public void setId(int id) 46 { 47 this.id = id; 48 } 49 50 public String getDesc() 51 { 52 return desc; 53 } 54 55 public void setDesc(String desc) 56 { 57 this.desc = desc; 58 } 59 60 public int getPersonId() 61 { 62 return personId; 63 } 64 65 public void setPersonId(int personId) 66 { 67 this.personId = personId; 68 } 69 70 public Person getPerson() 71 { 72 return person; 73 } 74 75 public void setPerson(Person person) 76 { 77 this.person = person; 78 } 79 80 public int getAddressId() 81 { 82 return addressId; 83 } 84 85 public void setAddressId(int addressId) 86 { 87 this.addressId = addressId; 88 } 89 90 public Address getAddress() 91 { 92 return address; 93 } 94 95 public void setAddress(Address address) 96 { 97 this.address = address; 98 } 99 100 } 101 | Popular Tags |