Coverage Report - org.kuali.rice.kim.bo.ui.PersonDocumentCitizenship
 
Classes in this File Line Coverage Branch Coverage Complexity
PersonDocumentCitizenship
0%
0/19
N/A
1
 
 1  
 /*
 2  
  * Copyright 2007-2009 The Kuali Foundation
 3  
  *
 4  
  * Licensed under the Educational Community License, Version 2.0 (the "License");
 5  
  * you may not use this file except in compliance with the License.
 6  
  * You may obtain a copy of the License at
 7  
  *
 8  
  * http://www.opensource.org/licenses/ecl2.php
 9  
  *
 10  
  * Unless required by applicable law or agreed to in writing, software
 11  
  * distributed under the License is distributed on an "AS IS" BASIS,
 12  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 13  
  * See the License for the specific language governing permissions and
 14  
  * limitations under the License.
 15  
  */
 16  
 package org.kuali.rice.kim.bo.ui;
 17  
 
 18  
 import org.hibernate.annotations.GenericGenerator;
 19  
 import org.hibernate.annotations.Parameter;
 20  
 
 21  
 import javax.persistence.*;
 22  
 import java.sql.Date;
 23  
 
 24  
 /**
 25  
  * This is a description of what this class does - shyu don't forget to fill this in. 
 26  
  * 
 27  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 28  
  *
 29  
  */
 30  
 @IdClass(PersonDocumentCitizenshipId.class)
 31  
 @Entity
 32  
 @Table(name = "KRIM_PND_CTZNSHP_MT")
 33  0
 public class PersonDocumentCitizenship extends KimDocumentBoActivatableEditableBase {
 34  
         @Id
 35  
         @GeneratedValue(generator="KRIM_ENTITY_CTZNSHP_ID_S")
 36  
         @GenericGenerator(name="KRIM_ENTITY_CTZNSHP_ID_S",strategy="org.kuali.rice.core.jpa.spring.RiceNumericStringSequenceStyleGenerator",parameters={
 37  
                         @Parameter(name="sequence_name",value="KRIM_ENTITY_CTZNSHP_ID_S"),
 38  
                         @Parameter(name="value_column",value="id")
 39  
                 })
 40  
         @Column(name = "ENTITY_CTZNSHP_ID")
 41  
         protected String entityCitizenshipId;
 42  
         
 43  
         @Column(name = "ENTITY_ID")
 44  
         protected String entityId;
 45  
         
 46  
         @Column(name = "POSTAL_CNTRY_CD")
 47  
         protected String countryCode;
 48  
 
 49  
         @Column(name = "CTZNSHP_STAT_CD")
 50  
         protected String citizenshipStatusCode;
 51  
 
 52  
         @Column(name = "strt_dt")
 53  
         protected Date startDate;
 54  
 
 55  
         @Column(name = "end_dt")
 56  
         protected Date endDate;
 57  
 
 58  
         
 59  
         /**
 60  
          * @see org.kuali.rice.kim.api.identity.citizenship.EntityCitizenshipContract#getCitizenshipStatusCode()
 61  
          */
 62  
         public String getCitizenshipStatusCode() {
 63  0
                 return citizenshipStatusCode;
 64  
         }
 65  
 
 66  
         /**
 67  
          * @see org.kuali.rice.kim.api.identity.citizenship.EntityCitizenshipContract#getEndDate()
 68  
          */
 69  
         public Date getEndDate() {
 70  0
                 return endDate;
 71  
         }
 72  
 
 73  
         /**
 74  
          * @see org.kuali.rice.kim.api.identity.citizenship.EntityCitizenshipContract#getId()
 75  
          */
 76  
         public String getEntityCitizenshipId() {
 77  0
                 return entityCitizenshipId;
 78  
         }
 79  
 
 80  
         /**
 81  
          * @see org.kuali.rice.kim.api.identity.citizenship.EntityCitizenshipContract#getStartDate()
 82  
          */
 83  
         public Date getStartDate() {
 84  0
                 return startDate;
 85  
         }
 86  
 
 87  
         /**
 88  
          * @see org.kuali.rice.kim.api.identity.citizenship.EntityCitizenshipContract#setStatusCode(java.lang.String)
 89  
          */
 90  
         public void setCitizenshipStatusCode(String citizenshipStatusCode) {
 91  0
                 this.citizenshipStatusCode = citizenshipStatusCode;
 92  0
         }
 93  
 
 94  
         /**
 95  
          * @see org.kuali.rice.kim.api.identity.citizenship.EntityCitizenshipContract#setEndDate(java.util.Date)
 96  
          */
 97  
         public void setEndDate(Date endDate) {
 98  0
                 this.endDate = endDate;
 99  0
         }
 100  
 
 101  
         /**
 102  
          * @see org.kuali.rice.kim.api.identity.citizenship.EntityCitizenshipContract#startDate(java.util.Date)
 103  
          */
 104  
         public void setStartDate(Date startDate) {
 105  0
                 this.startDate = startDate;
 106  0
         }
 107  
 
 108  
 
 109  
         public String getEntityId() {
 110  0
                 return this.entityId;
 111  
         }
 112  
 
 113  
         public void setEntityId(String entityId) {
 114  0
                 this.entityId = entityId;
 115  0
         }
 116  
 
 117  
         public String getCountryCode() {
 118  0
                 return this.countryCode;
 119  
         }
 120  
 
 121  
         public void setCountryCode(String countryCode) {
 122  0
                 this.countryCode = countryCode;
 123  0
         }
 124  
 
 125  
         public void setEntityCitizenshipId(String entityCitizenshipId) {
 126  0
                 this.entityCitizenshipId = entityCitizenshipId;
 127  0
         }
 128  
 }