001: /**
002: * Copyright 2006 Webmedia Group Ltd.
003: *
004: * Licensed under the Apache License, Version 2.0 (the "License");
005: * you may not use this file except in compliance with the License.
006: * You may obtain a copy of the License at
007: *
008: * http://www.apache.org/licenses/LICENSE-2.0
009: *
010: * Unless required by applicable law or agreed to in writing, software
011: * distributed under the License is distributed on an "AS IS" BASIS,
012: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013: * See the License for the specific language governing permissions and
014: * limitations under the License.
015: **/package org.araneaframework.example.main.business.model;
016:
017: import java.math.BigDecimal;
018: import java.util.Date;
019:
020: /**
021: * @author <a href="mailto:rein@araneaframework.org">Rein Raudjärv</a>
022:
023: * @hibernate.class table="person" lazy="false"
024: */
025: public class PersonMO implements GeneralMO {
026:
027: private static final long serialVersionUID = 1L;
028: private Long id;
029: private String name;
030: private String surname;
031: private String phone;
032: private Date birthdate;
033: private BigDecimal salary;
034:
035: /**
036: * @hibernate.id column="id" generator-class="increment"
037: */
038: public Long getId() {
039: return id;
040: }
041:
042: public void setId(Long id) {
043: this .id = id;
044: }
045:
046: /**
047: * @hibernate.property not-null="true"
048: */
049: public String getName() {
050: return name;
051: }
052:
053: public void setName(String name) {
054: this .name = name;
055: }
056:
057: /**
058: * @hibernate.property
059: */
060: public String getSurname() {
061: return surname;
062: }
063:
064: public void setSurname(String surname) {
065: this .surname = surname;
066: }
067:
068: /**
069: * @hibernate.property
070: */
071: public String getPhone() {
072: return phone;
073: }
074:
075: public void setPhone(String phone) {
076: this .phone = phone;
077: }
078:
079: /**
080: * @hibernate.property type="date"
081: */
082: public Date getBirthdate() {
083: return birthdate;
084: }
085:
086: public void setBirthdate(Date birthdate) {
087: this .birthdate = birthdate;
088: }
089:
090: /**
091: * @hibernate.property
092: */
093: public BigDecimal getSalary() {
094: return salary;
095: }
096:
097: public void setSalary(BigDecimal salary) {
098: this.salary = salary;
099: }
100: }
|