KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > za > org > coefficient > core > AttributeElement


1 /*
2  * Coefficient - facilitates project based collaboration
3  * Copyright (C) 2003, Dylan Etkin, CSIR icomtek
4  * PO Box 395
5  * Pretoria 0001, RSA
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18  */

19
20 package za.org.coefficient.core;
21
22
23 /**
24  * Title: Project Engine
25  * Description:
26  * Copyright: Copyright (c) 2003
27  * Company: icomtek CSIR
28  * @author Krishendran Rangappa
29  * @version 1.0
30  * @hibernate.class
31  * table="COEFFICIENT_ATTRIBUTE_ELEMENT"
32  */

33 public class AttributeElement implements java.io.Serializable JavaDoc {
34     //~ Instance fields ========================================================
35

36     private Long JavaDoc id;
37     private String JavaDoc description;
38     private String JavaDoc name;
39
40     //~ Constructors ===========================================================
41

42     public AttributeElement() {
43     }
44
45     //~ Methods ================================================================
46

47     public void setDescription(String JavaDoc description) {
48         this.description = description;
49     }
50
51     /**
52      * @hibernate.property
53      * column="DESCRIPTION"
54      */

55     public String JavaDoc getDescription() {
56         return description;
57     }
58
59     /**
60      * Sets the value of id
61      *
62      * @param argId Value to assign to this.id
63      */

64     public void setId(Long JavaDoc argId) {
65         this.id = argId;
66     }
67
68     /**
69      * Gets the value of id
70      *
71      * @return the value of id
72      * @hibernate.id
73      * generator-class="native"
74      */

75     public Long JavaDoc getId() {
76         return this.id;
77     }
78
79     public void setName(String JavaDoc name) {
80         this.name = name;
81     }
82
83     /**
84      * @hibernate.property
85      * column="NAME"
86      */

87     public String JavaDoc getName() {
88         return name;
89     }
90 }
91
Popular Tags