| 1 | |
|
| 2 | |
|
| 3 | |
|
| 4 | |
|
| 5 | |
|
| 6 | |
|
| 7 | |
|
| 8 | |
|
| 9 | |
|
| 10 | |
|
| 11 | |
|
| 12 | |
|
| 13 | |
|
| 14 | |
|
| 15 | |
|
| 16 | |
package org.kuali.rice.kim.bo.ui; |
| 17 | |
|
| 18 | |
import java.sql.Date; |
| 19 | |
import java.util.LinkedHashMap; |
| 20 | |
|
| 21 | |
import javax.persistence.Column; |
| 22 | |
import javax.persistence.Entity; |
| 23 | |
import javax.persistence.FetchType; |
| 24 | |
import javax.persistence.Id; |
| 25 | |
import javax.persistence.JoinColumn; |
| 26 | |
import javax.persistence.ManyToOne; |
| 27 | |
import javax.persistence.Table; |
| 28 | |
|
| 29 | |
import org.kuali.rice.kim.bo.reference.CitizenshipStatus; |
| 30 | |
import org.kuali.rice.kim.bo.reference.impl.CitizenshipStatusImpl; |
| 31 | |
import org.kuali.rice.kns.bo.PersistableBusinessObjectBase; |
| 32 | |
|
| 33 | |
|
| 34 | |
|
| 35 | |
|
| 36 | |
|
| 37 | |
|
| 38 | |
|
| 39 | |
@Entity |
| 40 | |
@Table(name = "KRIM_PND_CTZNSHP_MT") |
| 41 | 0 | public class PersonDocumentCitizenship extends KimDocumentBoBase { |
| 42 | |
@Id |
| 43 | |
@Column(name = "ENTITY_CTZNSHP_ID") |
| 44 | |
protected String entityCitizenshipId; |
| 45 | |
|
| 46 | |
@Column(name = "ENTITY_ID") |
| 47 | |
protected String entityId; |
| 48 | |
|
| 49 | |
@Column(name = "POSTAL_CNTRY_CD") |
| 50 | |
protected String countryCode; |
| 51 | |
|
| 52 | |
@Column(name = "CTZNSHP_STAT_CD") |
| 53 | |
protected String citizenshipStatusCode; |
| 54 | |
|
| 55 | |
@Column(name = "strt_dt") |
| 56 | |
protected Date startDate; |
| 57 | |
|
| 58 | |
@Column(name = "end_dt") |
| 59 | |
protected Date endDate; |
| 60 | |
|
| 61 | |
|
| 62 | |
|
| 63 | |
|
| 64 | |
|
| 65 | |
public String getCitizenshipStatusCode() { |
| 66 | 0 | return citizenshipStatusCode; |
| 67 | |
} |
| 68 | |
|
| 69 | |
|
| 70 | |
|
| 71 | |
|
| 72 | |
public Date getEndDate() { |
| 73 | 0 | return endDate; |
| 74 | |
} |
| 75 | |
|
| 76 | |
|
| 77 | |
|
| 78 | |
|
| 79 | |
public String getEntityCitizenshipId() { |
| 80 | 0 | return entityCitizenshipId; |
| 81 | |
} |
| 82 | |
|
| 83 | |
|
| 84 | |
|
| 85 | |
|
| 86 | |
public Date getStartDate() { |
| 87 | 0 | return startDate; |
| 88 | |
} |
| 89 | |
|
| 90 | |
|
| 91 | |
|
| 92 | |
|
| 93 | |
public void setCitizenshipStatusCode(String citizenshipStatusCode) { |
| 94 | 0 | this.citizenshipStatusCode = citizenshipStatusCode; |
| 95 | 0 | } |
| 96 | |
|
| 97 | |
|
| 98 | |
|
| 99 | |
|
| 100 | |
public void setEndDate(Date endDate) { |
| 101 | 0 | this.endDate = endDate; |
| 102 | 0 | } |
| 103 | |
|
| 104 | |
|
| 105 | |
|
| 106 | |
|
| 107 | |
public void setStartDate(Date startDate) { |
| 108 | 0 | this.startDate = startDate; |
| 109 | 0 | } |
| 110 | |
|
| 111 | |
|
| 112 | |
public String getEntityId() { |
| 113 | 0 | return this.entityId; |
| 114 | |
} |
| 115 | |
|
| 116 | |
public void setEntityId(String entityId) { |
| 117 | 0 | this.entityId = entityId; |
| 118 | 0 | } |
| 119 | |
|
| 120 | |
public String getCountryCode() { |
| 121 | 0 | return this.countryCode; |
| 122 | |
} |
| 123 | |
|
| 124 | |
public void setCountryCode(String countryCode) { |
| 125 | 0 | this.countryCode = countryCode; |
| 126 | 0 | } |
| 127 | |
|
| 128 | |
public void setEntityCitizenshipId(String entityCitizenshipId) { |
| 129 | 0 | this.entityCitizenshipId = entityCitizenshipId; |
| 130 | 0 | } |
| 131 | |
|
| 132 | |
@Override |
| 133 | |
protected LinkedHashMap toStringMapper() { |
| 134 | 0 | LinkedHashMap m = super.toStringMapper(); |
| 135 | 0 | m.put( "entityCitizenshipId", entityCitizenshipId ); |
| 136 | 0 | m.put( "countryCode", countryCode ); |
| 137 | 0 | m.put( "citizenshipStatusCode", citizenshipStatusCode ); |
| 138 | 0 | m.put( "startDate", startDate ); |
| 139 | 0 | m.put( "endDate", endDate ); |
| 140 | 0 | return m; |
| 141 | |
} |
| 142 | |
|
| 143 | |
} |