01: /*
02: * Copyright 2002-2005 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 info.jtrac.domain;
18:
19: import static info.jtrac.Constants.*;
20:
21: import java.io.Serializable;
22:
23: /**
24: * Represents a Tag as in an Item can be assigned multiple Tags
25: * allows for categorization of Items web 2.0 style
26: */
27: public class Tag implements Serializable {
28:
29: private long id;
30: private int type;
31: private String name;
32: private String description;
33:
34: public long getId() {
35: return id;
36: }
37:
38: public void setId(long id) {
39: this .id = id;
40: }
41:
42: public int getType() {
43: return type;
44: }
45:
46: public void setType(int type) {
47: this .type = type;
48: }
49:
50: public String getName() {
51: return name;
52: }
53:
54: public void setName(String name) {
55: this .name = name;
56: }
57:
58: public String getDescription() {
59: return description;
60: }
61:
62: public void setDescription(String description) {
63: this .description = description;
64: }
65:
66: @Override
67: public int hashCode() {
68: return (int) id;
69: }
70:
71: }
|