01: /**
02: * Copyright 2006 Webmedia Group Ltd.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: **/package org.araneaframework.example.main.business.model;
16:
17: import java.math.BigDecimal;
18:
19: /**
20: * @author Rein Raudjärv <rein@webmedia.ee>
21: *
22: * @hibernate.class table="contract" lazy="false"
23: */
24: public class ContractMO implements GeneralMO {
25:
26: private static final long serialVersionUID = 1L;
27: private Long id;
28: private CompanyMO company;
29: private PersonMO person;
30: private String notes;
31: private BigDecimal total;
32:
33: /**
34: * @hibernate.id column="id" generator-class="increment"
35: */
36: public Long getId() {
37: return id;
38: }
39:
40: public void setId(Long id) {
41: this .id = id;
42: }
43:
44: /**
45: * @hibernate.many-to-one column="COMPANY_ID" not-null="true"
46: */
47: public CompanyMO getCompany() {
48: return company;
49: }
50:
51: public void setCompany(CompanyMO company) {
52: this .company = company;
53: }
54:
55: /**
56: * @hibernate.many-to-one column="PERSON_ID" not-null="true"
57: */
58: public PersonMO getPerson() {
59: return person;
60: }
61:
62: public void setPerson(PersonMO person) {
63: this .person = person;
64: }
65:
66: /**
67: * @hibernate.property column="NOTES"
68: */
69: public String getNotes() {
70: return notes;
71: }
72:
73: public void setNotes(String notes) {
74: this .notes = notes;
75: }
76:
77: /**
78: * @hibernate.property column="TOTAL"
79: */
80: public BigDecimal getTotal() {
81: return total;
82: }
83:
84: public void setTotal(BigDecimal total) {
85: this.total = total;
86: }
87: }
|