Coverage Report - org.kuali.rice.kim.bo.ui.PersonDocumentEmail
 
Classes in this File Line Coverage Branch Coverage Complexity
PersonDocumentEmail
0%
0/18
N/A
1
 
 1  
 /**
 2  
  * Copyright 2005-2011 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  
 import org.kuali.rice.kim.api.identity.CodedAttributeContract;
 21  
 import org.kuali.rice.kim.impl.identity.email.EntityEmailTypeBo;
 22  
 
 23  
 
 24  
 import javax.persistence.*;
 25  
 
 26  
 /**
 27  
  * This is a description of what this class does - shyu don't forget to fill this in. 
 28  
  * 
 29  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 30  
  *
 31  
  */
 32  
 @IdClass(PersonDocumentEmailId.class)
 33  
 @Entity
 34  
 @Table(name = "KRIM_PND_EMAIL_MT")
 35  
 public class PersonDocumentEmail extends PersonDocumentBoDefaultBase{
 36  
         @Id
 37  
         @GeneratedValue(generator="KRIM_ENTITY_EMAIL_ID_S")
 38  
         @GenericGenerator(name="KRIM_ENTITY_EMAIL_ID_S",strategy="org.kuali.rice.core.jpa.spring.RiceNumericStringSequenceStyleGenerator",parameters={
 39  
                         @Parameter(name="sequence_name",value="KRIM_ENTITY_EMAIL_ID_S"),
 40  
                         @Parameter(name="value_column",value="id")
 41  
                 })
 42  
         @Column(name = "ENTITY_EMAIL_ID")
 43  
         protected String entityEmailId;
 44  
 
 45  
         @Column(name = "ENT_TYP_CD")
 46  
         protected String entityTypeCode;
 47  
 
 48  
         @Column(name = "EMAIL_TYP_CD")
 49  
         protected String emailTypeCode;
 50  
 
 51  
         @Column(name = "EMAIL_ADDR")
 52  
         protected String emailAddress;
 53  
 
 54  
         @ManyToOne(targetEntity=EntityEmailTypeBo.class, fetch = FetchType.EAGER, cascade = {})
 55  
         @JoinColumn(name = "EMAIL_TYP_CD", insertable = false, updatable = false)
 56  
         protected EntityEmailTypeBo emailType;
 57  
         
 58  0
         public PersonDocumentEmail() {
 59  0
                 this.active = true;
 60  0
         }
 61  
 
 62  
         /**
 63  
          * @see org.kuali.rice.kim.api.identity.email.EntityEmailContract#getEmailAddress()
 64  
          */
 65  
         public String getEmailAddress() {
 66  0
                 return emailAddress;
 67  
         }
 68  
 
 69  
         /**
 70  
          * @see org.kuali.rice.kim.api.identity.email.EntityEmailContract#getEmailType()
 71  
          */
 72  
         public String getEmailTypeCode() {
 73  0
                 return emailTypeCode;
 74  
         }
 75  
 
 76  
         /**
 77  
          * @see org.kuali.rice.kim.api.identity.email.EntityEmailContract#getId()
 78  
          */
 79  
         public String getEntityEmailId() {
 80  0
                 return entityEmailId;
 81  
         }
 82  
 
 83  
         /**
 84  
          * @see org.kuali.rice.kim.api.identity.email.EntityEmailContract#setEmailAddress(java.lang.String)
 85  
          */
 86  
         public void setEmailAddress(String emailAddress) {
 87  0
                 this.emailAddress = emailAddress;
 88  0
         }
 89  
 
 90  
         /**
 91  
          * @see org.kuali.rice.kim.api.identity.email.EntityEmailContract#setEmailType(java.lang.String)
 92  
          */
 93  
         public void setEmailTypeCode(String emailTypeCode) {
 94  0
                 this.emailTypeCode = emailTypeCode;
 95  0
         }
 96  
 
 97  
         /**
 98  
          * @see org.kuali.rice.kim.bo.entity.KimDefaultableEntityTypeData#getEntityTypeCode()
 99  
          */
 100  
         public String getEntityTypeCode() {
 101  0
                 return entityTypeCode;
 102  
         }
 103  
 
 104  
         /**
 105  
          * @see org.kuali.rice.kim.bo.entity.KimDefaultableEntityTypeData#setEntityTypeCode(java.lang.String)
 106  
          */
 107  
         public void setEntityTypeCode(String entityTypeCode) {
 108  0
                 this.entityTypeCode = entityTypeCode;
 109  0
         }
 110  
 
 111  
         public void setEntityEmailId(String entityEmailId) {
 112  0
                 this.entityEmailId = entityEmailId;
 113  0
         }
 114  
 
 115  
         public EntityEmailTypeBo getEmailType() {
 116  0
                 return this.emailType;
 117  
         }
 118  
 
 119  
         public void setEmailType(EntityEmailTypeBo emailType) {
 120  0
                 this.emailType = emailType;
 121  0
         }
 122  
 
 123  
 }