Coverage Report - org.kuali.rice.ken.bo.NotificationSender
 
Classes in this File Line Coverage Branch Coverage Complexity
NotificationSender
0%
0/11
N/A
1
 
 1  
 /*
 2  
  * Copyright 2007-2008 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.ken.bo;
 17  
 
 18  
 import javax.persistence.CascadeType;
 19  
 import javax.persistence.Column;
 20  
 import javax.persistence.Entity;
 21  
 import javax.persistence.FetchType;
 22  
 import javax.persistence.Id;
 23  
 import javax.persistence.JoinColumn;
 24  
 import javax.persistence.ManyToOne;
 25  
 import javax.persistence.Table;
 26  
 
 27  
 /**
 28  
  * This class represents the data structure that will house information about the non-system 
 29  
  * sender that a notification message is sent on behalf of.
 30  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 31  
  */
 32  
 @Entity
 33  
 @Table(name="KREN_SNDR_T")
 34  
 public class NotificationSender {
 35  
     @Id
 36  
         @Column(name="SNDR_ID")
 37  
         private Long id;
 38  
     @Column(name="NTFCTN_ID", nullable=false)
 39  
         private Long notificationId;
 40  
     @Column(name="NM", nullable=false)
 41  
         private String senderName;
 42  
 
 43  
     // Added for JPA uni-directional one-to-many (not yet supported by JPA)
 44  
     @ManyToOne(fetch=FetchType.EAGER, cascade={CascadeType.PERSIST, CascadeType.REMOVE})
 45  
     @JoinColumn(name="NTFCTN_ID", insertable=false, updatable=false)
 46  
     private Notification notification;
 47  
 
 48  
     /**
 49  
      * Constructs a NotificationSender.java instance.
 50  
      */
 51  0
     public NotificationSender() {
 52  0
     }
 53  
 
 54  
     /**
 55  
      * Gets the id attribute. 
 56  
      * @return Returns the id.
 57  
      */
 58  
     public Long getId() {
 59  0
         return id;
 60  
     }
 61  
 
 62  
     /**
 63  
      * Sets the id attribute value.
 64  
      * @param id The id to set.
 65  
      */
 66  
     public void setId(Long id) {
 67  0
         this.id = id;
 68  0
     }
 69  
 
 70  
     /**
 71  
      * Gets the notificationId attribute. 
 72  
      * @return Returns the notificationId.
 73  
      */
 74  
     public Long getNotificationId() {
 75  0
         return notificationId;
 76  
     }
 77  
 
 78  
     /**
 79  
      * Sets the notificationId attribute value.
 80  
      * @param notificationId The notificationId to set.
 81  
      */
 82  
     public void setNotificationId(Long notificationId) {
 83  0
         this.notificationId = notificationId;
 84  0
     }
 85  
 
 86  
     /**
 87  
      * Gets the senderName attribute. 
 88  
      * @return Returns the senderName.
 89  
      */
 90  
     public String getSenderName() {
 91  0
         return senderName;
 92  
     }
 93  
 
 94  
     /**
 95  
      * Sets the senderName attribute value.
 96  
      * @param senderName The senderName to set.
 97  
      */
 98  
     public void setSenderName(String userId) {
 99  0
         this.senderName = userId;
 100  0
     }
 101  
 }