KickJava   Java API By Example, From Geeks To Geeks.

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


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 import java.util.ArrayList JavaDoc;
23 import java.util.List JavaDoc;
24
25 /**
26  * Title: Project Engine
27  * Description:
28  * Copyright: Copyright (c) 2003
29  * Company: icomtek CSIR
30  * @author Krishendran Rangappa
31  * @version 1.0
32  * @hibernate.class
33  * table="COEFFICIENT_ATTRIBUTE"
34  */

35 public class ProjectAttribute implements java.io.Serializable JavaDoc {
36     //~ Instance fields ========================================================
37

38     private List JavaDoc elements;
39     private Long JavaDoc id;
40     private String JavaDoc name;
41
42     //~ Constructors ===========================================================
43

44     public ProjectAttribute() {
45         elements = new ArrayList JavaDoc();
46     }
47
48     //~ Methods ================================================================
49

50     public void setElements(List JavaDoc elements) {
51         this.elements = elements;
52     }
53
54     /**
55      * @return the value of elements
56      * @hibernate.list
57      * cascade="all"
58      * table="COEFFICIENT_ATTRIBUTE_ELEMENTS"
59      * @hibernate.collection-key
60      * column="ATTRIBUTE_ID"
61      * @hibernate.collection-index
62      * column="IDX"
63      * @hibernate.collection-many-to-many
64      * class="za.org.coefficient.core.AttributeElement"
65      * column="ELEMENTS"
66      */

67     public List JavaDoc getElements() {
68         return elements;
69     }
70
71     /**
72      * Sets the value of id
73      *
74      * @param argId Value to assign to this.id
75      */

76     public void setId(Long JavaDoc argId) {
77         this.id = argId;
78     }
79
80     /**
81      * Gets the value of id
82      *
83      * @return the value of id
84      * @hibernate.id
85      * generator-class="native"
86      */

87     public Long JavaDoc getId() {
88         return this.id;
89     }
90
91     public void setName(String JavaDoc name) {
92         this.name = name;
93     }
94
95     /**
96      * @hibernate.property
97      * column="NAME"
98      */

99     public String JavaDoc getName() {
100         return name;
101     }
102 }
103
Popular Tags