1 22 23 package org.jboss.test.hibernate.model.v2; 24 25 import java.io.Serializable ; 26 27 31 public class Person implements Serializable 32 { 33 private static final long serialVersionUID = 2; 34 private String name; 35 private String address; 36 private int iq; 37 private java.util.Date bday; 38 private Float number; 39 private Long id; 40 41 public Person(int iq) 42 { 43 this.iq = iq; 44 } 45 46 public Person() 47 { 48 } 49 50 public Long getId() 51 { 52 return id; 53 } 54 55 public void setId(Long id) 56 { 57 this.id = id; 58 } 59 60 64 public String getName() 65 { 66 return name; 67 } 68 69 73 public void setName(String name) 74 { 75 this.name = name; 76 } 77 78 82 public String getAddress() 83 { 84 return address; 85 } 86 87 91 public void setAddress(String address) 92 { 93 this.address = address; 94 } 95 96 100 public int getIQ() 101 { 102 return iq; 103 } 104 105 109 public void setIQ(int iq) 110 { 111 this.iq = iq; 112 } 113 114 118 public java.util.Date getBDay() 119 { 120 return bday; 121 } 122 123 127 public void setBDay(java.util.Date bday) 128 { 129 this.bday = bday; 130 } 131 132 136 public Float getPay() 137 { 138 return number; 139 } 140 141 145 public void setPay(Float number) 146 { 147 this.number = number; 148 } 149 150 } 151 | Popular Tags |