001/** 002 * Copyright 2005-2016 The Kuali Foundation 003 * 004 * Licensed under the Educational Community License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.opensource.org/licenses/ecl2.php 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016package org.kuali.rice.kim.bo.ui; 017 018import org.hibernate.annotations.GenericGenerator; 019import org.hibernate.annotations.Parameter; 020 021import javax.persistence.*; 022import java.sql.Date; 023 024/** 025 * This is a description of what this class does - shyu don't forget to fill this in. 026 * 027 * @author Kuali Rice Team (rice.collab@kuali.org) 028 * 029 */ 030@IdClass(PersonDocumentCitizenshipId.class) 031@Entity 032@Table(name = "KRIM_PND_CTZNSHP_MT") 033public class PersonDocumentCitizenship extends KimDocumentBoActivatableEditableBase { 034 @Id 035 @GeneratedValue(generator="KRIM_ENTITY_CTZNSHP_ID_S") 036 @GenericGenerator(name="KRIM_ENTITY_CTZNSHP_ID_S",strategy="org.kuali.rice.core.jpa.spring.RiceNumericStringSequenceStyleGenerator",parameters={ 037 @Parameter(name="sequence_name",value="KRIM_ENTITY_CTZNSHP_ID_S"), 038 @Parameter(name="value_column",value="id") 039 }) 040 @Column(name = "ENTITY_CTZNSHP_ID") 041 protected String entityCitizenshipId; 042 043 @Column(name = "ENTITY_ID") 044 protected String entityId; 045 046 @Column(name = "POSTAL_CNTRY_CD") 047 protected String countryCode; 048 049 @Column(name = "CTZNSHP_STAT_CD") 050 protected String citizenshipStatusCode; 051 052 @Column(name = "strt_dt") 053 protected Date startDate; 054 055 @Column(name = "end_dt") 056 protected Date endDate; 057 058 059 /** 060 * @see org.kuali.rice.kim.api.identity.citizenship.EntityCitizenshipContract#getCitizenshipStatusCode() 061 */ 062 public String getCitizenshipStatusCode() { 063 return citizenshipStatusCode; 064 } 065 066 /** 067 * @see org.kuali.rice.kim.api.identity.citizenship.EntityCitizenshipContract#getEndDate() 068 */ 069 public Date getEndDate() { 070 return endDate; 071 } 072 073 /** 074 * @see org.kuali.rice.kim.api.identity.citizenship.EntityCitizenshipContract#getId() 075 */ 076 public String getEntityCitizenshipId() { 077 return entityCitizenshipId; 078 } 079 080 /** 081 * @see org.kuali.rice.kim.api.identity.citizenship.EntityCitizenshipContract#getStartDate() 082 */ 083 public Date getStartDate() { 084 return startDate; 085 } 086 087 /** 088 * @see org.kuali.rice.kim.api.identity.citizenship.EntityCitizenshipContract#setStatusCode(java.lang.String) 089 */ 090 public void setCitizenshipStatusCode(String citizenshipStatusCode) { 091 this.citizenshipStatusCode = citizenshipStatusCode; 092 } 093 094 /** 095 * @see org.kuali.rice.kim.api.identity.citizenship.EntityCitizenshipContract#setEndDate(java.util.Date) 096 */ 097 public void setEndDate(Date endDate) { 098 this.endDate = endDate; 099 } 100 101 /** 102 * @see org.kuali.rice.kim.api.identity.citizenship.EntityCitizenshipContract#startDate(java.util.Date) 103 */ 104 public void setStartDate(Date startDate) { 105 this.startDate = startDate; 106 } 107 108 109 public String getEntityId() { 110 return this.entityId; 111 } 112 113 public void setEntityId(String entityId) { 114 this.entityId = entityId; 115 } 116 117 public String getCountryCode() { 118 return this.countryCode; 119 } 120 121 public void setCountryCode(String countryCode) { 122 this.countryCode = countryCode; 123 } 124 125 public void setEntityCitizenshipId(String entityCitizenshipId) { 126 this.entityCitizenshipId = entityCitizenshipId; 127 } 128}