1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.rice.core.impl.component; |
17 | |
|
18 | |
|
19 | |
import javax.persistence.Column |
20 | |
import org.apache.commons.lang.builder.EqualsBuilder |
21 | |
import org.apache.commons.lang.builder.HashCodeBuilder |
22 | |
import org.apache.commons.lang.builder.ToStringBuilder |
23 | |
|
24 | |
public class ComponentId implements Serializable { |
25 | |
|
26 | |
private static final long serialVersionUID = 1L; |
27 | |
|
28 | |
@Column(name="NMSPC_CD") |
29 | |
def final String namespaceCode; |
30 | |
|
31 | |
@Column(name="PARM_DTL_TYP_CD") |
32 | |
def final String componentCode; |
33 | |
|
34 | |
|
35 | |
private ComponentId() { |
36 | 0 | namespaceCode = null |
37 | 0 | componentCode = null |
38 | |
} |
39 | |
|
40 | |
public ComponentId(String namespaceCode, String componentCode) { |
41 | 0 | this.namespaceCode = namespaceCode |
42 | 0 | this.componentCode = componentCode |
43 | |
} |
44 | |
|
45 | |
@Override |
46 | |
public int hashCode() { |
47 | 0 | return HashCodeBuilder.reflectionHashCode(this); |
48 | |
} |
49 | |
|
50 | |
@Override |
51 | |
public boolean equals(Object obj) { |
52 | 0 | return EqualsBuilder.reflectionEquals(obj, this); |
53 | |
} |
54 | |
|
55 | |
@Override |
56 | |
public String toString() { |
57 | 0 | return ToStringBuilder.reflectionToString(this); |
58 | |
} |
59 | |
|
60 | |
} |
61 | |
|