001: /*
002: * JBoss, Home of Professional Open Source.
003: * Copyright 2006, Red Hat Middleware LLC, and individual contributors
004: * as indicated by the @author tags. See the copyright.txt file in the
005: * distribution for a full listing of individual contributors.
006: *
007: * This is free software; you can redistribute it and/or modify it
008: * under the terms of the GNU Lesser General Public License as
009: * published by the Free Software Foundation; either version 2.1 of
010: * the License, or (at your option) any later version.
011: *
012: * This software is distributed in the hope that it will be useful,
013: * but WITHOUT ANY WARRANTY; without even the implied warranty of
014: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
015: * Lesser General Public License for more details.
016: *
017: * You should have received a copy of the GNU Lesser General Public
018: * License along with this software; if not, write to the Free
019: * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
020: * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
021: */
022: package org.jboss.test.hibernate.model.v1;
023:
024: import java.io.Serializable;
025:
026: /**
027: @author Scott.Stark@jboss.org
028: @version $Revision: 57211 $
029: */
030: public class Person implements Serializable {
031: private static final long serialVersionUID = 1;
032: private String name;
033: private String address;
034: private int iq;
035: private java.util.Date bday;
036: private Float number;
037: private Long id;
038:
039: public Person(int iq) {
040: this .iq = iq;
041: }
042:
043: public Person() {
044: }
045:
046: public Long getId() {
047: return id;
048: }
049:
050: public void setId(Long id) {
051: this .id = id;
052: }
053:
054: /**
055: Gets the name
056: @return Returns a String
057: */
058: public String getName() {
059: return name;
060: }
061:
062: /**
063: Sets the name
064: @param name The name to set
065: */
066: public void setName(String name) {
067: this .name = name;
068: }
069:
070: /**
071: Gets the address
072: @return Returns a String
073: */
074: public String getAddress() {
075: return address;
076: }
077:
078: /**
079: Sets the address
080: @param address The address to set
081: */
082: public void setAddress(String address) {
083: this .address = address;
084: }
085:
086: /**
087: Gets the IQ
088: @return Returns a int
089: */
090: public int getIQ() {
091: return iq;
092: }
093:
094: /**
095: Sets the IQ
096: @param iq The count to set
097: */
098: public void setIQ(int iq) {
099: this .iq = iq;
100: }
101:
102: /**
103: Gets the date
104: @return Returns a java.util.Date
105: */
106: public java.util.Date getBDay() {
107: return bday;
108: }
109:
110: /**
111: Sets the date
112: @param bday The date to set
113: */
114: public void setBDay(java.util.Date bday) {
115: this .bday = bday;
116: }
117:
118: /**
119: Gets the pay number
120: @return Returns a Float
121: */
122: public Float getPay() {
123: return number;
124: }
125:
126: /**
127: Sets the pay number
128: @param number The Pay to set
129: */
130: public void setPay(Float number) {
131: this.number = number;
132: }
133:
134: }
|