KickJava   Java API By Example, From Geeks To Geeks.

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


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  * @author Dylan Etkin
25  * @hibernate.class
26  * table="COEFFICIENT_PROJECT_VERSION"
27  */

28 public class ProjectVersion implements java.io.Serializable JavaDoc {
29     //~ Instance fields ========================================================
30

31     private String JavaDoc versionId;
32     private Long JavaDoc id;
33     private String JavaDoc description;
34     private String JavaDoc name;
35     private long version;
36
37     //~ Constructors ===========================================================
38

39     public ProjectVersion() {}
40
41     //~ Methods ================================================================
42

43     public void setDescription(String JavaDoc description) {
44         this.description = description;
45     }
46
47     /**
48      * @hibernate.property
49      * length="3999"
50      * column="DESCRIPTION"
51      */

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

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

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

84     public String JavaDoc getName() {
85         return name;
86     }
87
88     /**
89      * Sets the value of version
90      *
91      * @param version Value to assign to this.version
92      */

93     public void setVersion(long version) {
94         this.version = version;
95     }
96
97     /**
98      * Gets the value of version
99      *
100      * @return the value of version
101      * @hibernate.version
102      * column="VERSION"
103      * type="long"
104      */

105     public long getVersion() {
106         return this.version;
107     }
108
109     public void setVersionId(String JavaDoc versionId) {
110         this.versionId = versionId;
111     }
112
113     /**
114      * @hibernate.property
115      * column="VERSION_ID"
116      */

117     public String JavaDoc getVersionId() {
118         return versionId;
119     }
120
121     public boolean equals(Object JavaDoc other) {
122         ProjectVersion o = (ProjectVersion) other;
123
124         return (this != null) && (o != null)
125         && ((this.id == null && o.id == null) || this.id.equals(o.id));
126     }
127
128
129 }
130
Popular Tags