01: /**
02: *
03: */package org.emforge.projectmanager.base;
04:
05: import java.io.Serializable;
06:
07: import org.emforge.base.PrimitiveImpl;
08:
09: import org.emforge.projectmanager.base.ProjectDO;
10:
11: /**
12: * @author YShevchenko
13: */
14: public class ProjectDO extends PrimitiveImpl implements Serializable {
15:
16: private static final long serialVersionUID = -9147149452669472204L;
17:
18: // Fields
19: private String repositoryPath;
20:
21: // Constructors
22:
23: /**
24: * default constructor
25: */
26: public ProjectDO() {
27:
28: }
29:
30: /**
31: * full constructor
32: */
33: public ProjectDO(String name) {
34:
35: setName(name);
36: }
37:
38: // Property accessors
39:
40: /**
41: * @see org.emforge.projectmanager.base.Project#getRepositoryPath()
42: */
43: public String getRepositoryPath() {
44:
45: return this .repositoryPath;
46: }
47:
48: /**
49: * @see org.emforge.projectmanager.base.Project#setRepositoryPath(java.lang.String)
50: */
51: public void setRepositoryPath(String i_repositoryPath) {
52:
53: this .repositoryPath = i_repositoryPath;
54: }
55:
56: /**
57: * @see java.lang.Object#equals(java.lang.Object)
58: */
59: public boolean equals(Object i_obj) {
60:
61: boolean result = false;
62:
63: if (i_obj != null) {
64: if (i_obj == this ) {
65: result = true;
66:
67: } else if (i_obj instanceof ProjectDO) {
68: if (((ProjectDO) i_obj).getId() == getId()) {
69: result = true;
70: }
71: }
72: }
73:
74: return result;
75: }
76: }
|