1   
2   
3   
4   
5   
6   
7   
8   
9   
10  
11  
12  
13  
14  
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  
29  
30  
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      
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  
50  
51      public NotificationSender() {
52      }
53  
54      
55  
56  
57  
58      public Long getId() {
59          return id;
60      }
61  
62      
63  
64  
65  
66      public void setId(Long id) {
67          this.id = id;
68      }
69  
70      
71  
72  
73  
74      public Long getNotificationId() {
75          return notificationId;
76      }
77  
78      
79  
80  
81  
82      public void setNotificationId(Long notificationId) {
83          this.notificationId = notificationId;
84      }
85  
86      
87  
88  
89  
90      public String getSenderName() {
91          return senderName;
92      }
93  
94      
95  
96  
97  
98      public void setSenderName(String userId) {
99          this.senderName = userId;
100     }
101 }