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: /**
18: * @author Rein Raudjärv <rein@webmedia.ee>
19: *
20: * @hibernate.class table="company" lazy="false"
21: */
22: public class CompanyMO implements GeneralMO {
23:
24: private static final long serialVersionUID = 1L;
25: private Long id;
26: private String name;
27: private String address;
28:
29: /**
30: * @hibernate.id column="id" generator-class="increment"
31: */
32: public Long getId() {
33: return id;
34: }
35:
36: public void setId(Long id) {
37: this .id = id;
38: }
39:
40: /**
41: * @hibernate.property not-null="true"
42: */
43: public String getName() {
44: return name;
45: }
46:
47: public void setName(String name) {
48: this .name = name;
49: }
50:
51: /**
52: * @hibernate.property not-null="false"
53: */
54: public String getAddress() {
55: return address;
56: }
57:
58: public void setAddress(String address) {
59: this.address = address;
60: }
61: }
|