KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > test > hibernate > model > v2 > Person


1 /*
2   * JBoss, Home of Professional Open Source
3   * Copyright 2005, JBoss Inc., and individual contributors as indicated
4   * by the @authors tag. See the copyright.txt in the distribution for a
5   * full listing of individual contributors.
6   *
7   * This is free software; you can redistribute it and/or modify it
8   * under the terms of the GNU Lesser General Public License as
9   * published by the Free Software Foundation; either version 2.1 of
10   * the License, or (at your option) any later version.
11   *
12   * This software is distributed in the hope that it will be useful,
13   * but WITHOUT ANY WARRANTY; without even the implied warranty of
14   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15   * Lesser General Public License for more details.
16   *
17   * You should have received a copy of the GNU Lesser General Public
18   * License along with this software; if not, write to the Free
19   * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20   * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
21   */

22
23 package org.jboss.test.hibernate.model.v2;
24
25 import java.io.Serializable JavaDoc;
26
27 /**
28  @author Scott.Stark@jboss.org
29  @version $Revision: 41308 $
30  */

31 public class Person implements Serializable JavaDoc
32 {
33    private static final long serialVersionUID = 2;
34    private String JavaDoc name;
35    private String JavaDoc address;
36    private int iq;
37    private java.util.Date JavaDoc bday;
38    private Float JavaDoc number;
39    private Long JavaDoc id;
40
41    public Person(int iq)
42    {
43       this.iq = iq;
44    }
45
46    public Person()
47    {
48    }
49
50    public Long JavaDoc getId()
51    {
52       return id;
53    }
54
55    public void setId(Long JavaDoc id)
56    {
57       this.id = id;
58    }
59
60    /**
61     Gets the name
62     @return Returns a String
63     */

64    public String JavaDoc getName()
65    {
66       return name;
67    }
68
69    /**
70     Sets the name
71     @param name The name to set
72     */

73    public void setName(String JavaDoc name)
74    {
75       this.name = name;
76    }
77
78    /**
79     Gets the address
80     @return Returns a String
81     */

82    public String JavaDoc getAddress()
83    {
84       return address;
85    }
86
87    /**
88     Sets the address
89     @param address The address to set
90     */

91    public void setAddress(String JavaDoc address)
92    {
93       this.address = address;
94    }
95
96    /**
97     Gets the IQ
98     @return Returns a int
99     */

100    public int getIQ()
101    {
102       return iq;
103    }
104
105    /**
106     Sets the IQ
107     @param iq The count to set
108     */

109    public void setIQ(int iq)
110    {
111       this.iq = iq;
112    }
113
114    /**
115     Gets the date
116     @return Returns a java.util.Date
117     */

118    public java.util.Date JavaDoc getBDay()
119    {
120       return bday;
121    }
122
123    /**
124     Sets the date
125     @param bday The date to set
126     */

127    public void setBDay(java.util.Date JavaDoc bday)
128    {
129       this.bday = bday;
130    }
131
132    /**
133     Gets the pay number
134     @return Returns a Float
135     */

136    public Float JavaDoc getPay()
137    {
138       return number;
139    }
140
141    /**
142     Sets the pay number
143     @param number The Pay to set
144     */

145    public void setPay(Float JavaDoc number)
146    {
147       this.number = number;
148    }
149
150 }
151
Popular Tags