01: /*
02: * Copyright 2004-2006 the original author or authors.
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: */
16:
17: package org.compass.gps.device.hibernate.scrollable;
18:
19: public class Child {
20:
21: private int id;
22: private String firstName;
23: private String lastName;
24: private Parent parent;
25: private int version;
26:
27: public Child() {
28: super ();
29: }
30:
31: public Child(int id, Parent parent, String firstName,
32: String lastName) {
33: super ();
34: this .id = id;
35: this .firstName = firstName;
36: this .lastName = lastName;
37: this .parent = parent;
38: }
39:
40: public Parent getParent() {
41: return parent;
42: }
43:
44: public void setParent(Parent parent) {
45: this .parent = parent;
46: }
47:
48: public String getFirstName() {
49: return firstName;
50: }
51:
52: public void setFirstName(String firstName) {
53: this .firstName = firstName;
54: }
55:
56: public int getId() {
57: return id;
58: }
59:
60: public void setId(int id) {
61: this .id = id;
62: }
63:
64: public String getLastName() {
65: return lastName;
66: }
67:
68: public void setLastName(String lastName) {
69: this .lastName = lastName;
70: }
71:
72: public int getVersion() {
73: return version;
74: }
75:
76: public void setVersion(int version) {
77: this.version = version;
78: }
79:
80: }
|