01: /*
02: * Copyright 2007 Werner Guttmann
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: package org.castor.test.entity;
17:
18: /**
19: * Domain entity for XMLContext JUnit test case.
20: *
21: * @author <a herf="mailto:werner DOT guttmann AT gmx DOT net">Werner Guttmann</a>
22: * @since 1.1.2
23: */
24: public class Entity {
25:
26: /**
27: * Unique identifier.
28: */
29: private int _id;
30:
31: /**
32: * Entity name.
33: */
34: private String _name;
35:
36: /**
37: * Retrusn the unique identifier.
38: * @return the unique identifier.
39: */
40: public int getId() {
41: return _id;
42: }
43:
44: /**
45: * Sets a new unique identifier.
46: * @param id a new unique identifier.
47: */
48: public void setId(final int id) {
49: this ._id = id;
50: }
51:
52: /**
53: * Retrusn the entity name.
54: * @return the entity name.
55: */
56: public String getName() {
57: return _name;
58: }
59:
60: /**
61: * Sets a new entity name.
62: * @param _id a new entity name.
63: */
64: public void setName(final String name) {
65: this._name = name;
66: }
67:
68: }
|