001/**
002 * Copyright 2005-2014 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 java.sql.Date;
019
020import javax.persistence.Column;
021import javax.persistence.Entity;
022import javax.persistence.GeneratedValue;
023import javax.persistence.Id;
024import javax.persistence.Table;
025
026/**
027 * This is a description of what this class does - shyu don't forget to fill this in. 
028 * 
029 * @author Kuali Rice Team (rice.collab@kuali.org)
030 *
031 */
032@Entity
033@Table(name = "KRIM_PND_CTZNSHP_MT")
034public class PersonDocumentCitizenship extends KimDocumentBoActivatableEditableBase {
035        private static final long serialVersionUID = 1L;
036
037    @Id
038        @GeneratedValue(generator="KRIM_ENTITY_CTZNSHP_ID_S")
039        @Column(name = "ENTITY_CTZNSHP_ID")
040        protected String entityCitizenshipId;
041        
042        @Column(name = "ENTITY_ID")
043        protected String entityId;
044        
045        @Column(name = "POSTAL_CNTRY_CD")
046        protected String countryCode;
047
048        @Column(name = "CTZNSHP_STAT_CD")
049        protected String citizenshipStatusCode;
050
051        @Column(name = "STRT_DT")
052        protected Date startDate;
053
054        @Column(name = "END_DT")
055        protected Date endDate;
056
057        
058        /**
059         * @see org.kuali.rice.kim.api.identity.citizenship.EntityCitizenshipContract#getCitizenshipStatusCode()
060         */
061        public String getCitizenshipStatusCode() {
062                return citizenshipStatusCode;
063        }
064
065        /**
066         * @see org.kuali.rice.kim.api.identity.citizenship.EntityCitizenshipContract#getEndDate()
067         */
068        public Date getEndDate() {
069                return endDate;
070        }
071
072        /**
073         * @see org.kuali.rice.kim.api.identity.citizenship.EntityCitizenshipContract#getId()
074         */
075        public String getEntityCitizenshipId() {
076                return entityCitizenshipId;
077        }
078
079        /**
080         * @see org.kuali.rice.kim.api.identity.citizenship.EntityCitizenshipContract#getStartDate()
081         */
082        public Date getStartDate() {
083                return startDate;
084        }
085
086        /**
087         * @see org.kuali.rice.kim.api.identity.citizenship.EntityCitizenshipContract#setStatusCode(java.lang.String)
088         */
089        public void setCitizenshipStatusCode(String citizenshipStatusCode) {
090                this.citizenshipStatusCode = citizenshipStatusCode;
091        }
092
093        /**
094         * @see org.kuali.rice.kim.api.identity.citizenship.EntityCitizenshipContract#setEndDate(java.util.Date)
095         */
096        public void setEndDate(Date endDate) {
097                this.endDate = endDate;
098        }
099
100        /**
101         * @see org.kuali.rice.kim.api.identity.citizenship.EntityCitizenshipContract#startDate(java.util.Date)
102         */
103        public void setStartDate(Date startDate) {
104                this.startDate = startDate;
105        }
106
107
108        public String getEntityId() {
109                return this.entityId;
110        }
111
112        public void setEntityId(String entityId) {
113                this.entityId = entityId;
114        }
115
116        public String getCountryCode() {
117                return this.countryCode;
118        }
119
120        public void setCountryCode(String countryCode) {
121                this.countryCode = countryCode;
122        }
123
124        public void setEntityCitizenshipId(String entityCitizenshipId) {
125                this.entityCitizenshipId = entityCitizenshipId;
126        }
127}