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: import java.util.Set;
20:
21: public class Parent {
22:
23: private int id;
24: private String firstName;
25: private String lastName;
26: private int version;
27: private Set children;
28:
29: public Parent() {
30: super ();
31: }
32:
33: public Parent(int id, String firstName, String lastName) {
34: super ();
35: this .id = id;
36: this .firstName = firstName;
37: this .lastName = lastName;
38: }
39:
40: public String getFirstName() {
41: return firstName;
42: }
43:
44: public void setFirstName(String firstName) {
45: this .firstName = firstName;
46: }
47:
48: public int getId() {
49: return id;
50: }
51:
52: public void setId(int id) {
53: this .id = id;
54: }
55:
56: public String getLastName() {
57: return lastName;
58: }
59:
60: public void setLastName(String lastName) {
61: this .lastName = lastName;
62: }
63:
64: public int getVersion() {
65: return version;
66: }
67:
68: public void setVersion(int version) {
69: this .version = version;
70: }
71:
72: public Set getChildren() {
73: return children;
74: }
75:
76: public void setChildren(Set children) {
77: this.children = children;
78: }
79:
80: }
|