01: /*
02: * Copyright 2006 Luca Garulli (luca.garulli@assetdata.it)
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.romaframework.module.users.domain;
18:
19: import java.io.Serializable;
20:
21: import org.romaframework.aspect.core.annotation.AnnotationConstants;
22: import org.romaframework.aspect.core.annotation.CoreClass;
23: import org.romaframework.aspect.view.annotation.ViewField;
24:
25: @CoreClass(orderFields="name notes")
26: public class BaseGroup implements Serializable {
27:
28: @ViewField(required=AnnotationConstants.TRUE)
29: protected String name;
30:
31: protected String notes;
32:
33: @Override
34: public boolean equals(Object obj) {
35: if (!(obj instanceof BaseGroup))
36: return false;
37:
38: BaseGroup other = (BaseGroup) obj;
39: return name.equals(other.name);
40: }
41:
42: @Override
43: public String toString() {
44: return name;
45: }
46:
47: public String getName() {
48: return name;
49: }
50:
51: public void setName(String name) {
52: this .name = name;
53: }
54:
55: public String getNotes() {
56: return notes;
57: }
58:
59: public void setNotes(String notes) {
60: this.notes = notes;
61: }
62: }
|