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