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