1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.rice.krad.bo; |
17 | |
|
18 | |
import javax.persistence.Entity; |
19 | |
import javax.persistence.IdClass; |
20 | |
import javax.persistence.Table; |
21 | |
import javax.persistence.Transient; |
22 | |
|
23 | |
|
24 | |
|
25 | |
|
26 | |
|
27 | |
|
28 | |
|
29 | |
@IdClass(org.kuali.rice.krad.bo.AdHocRouteWorkgroupId.class) |
30 | |
@Entity |
31 | |
@Table(name="KRNS_ADHOC_RTE_ACTN_RECIP_T") |
32 | |
public class AdHocRouteWorkgroup extends AdHocRouteRecipient { |
33 | |
private static final long serialVersionUID = 1L; |
34 | |
|
35 | |
@Transient |
36 | |
private String recipientNamespaceCode; |
37 | |
|
38 | |
@Transient |
39 | |
private String recipientName; |
40 | |
|
41 | 0 | public AdHocRouteWorkgroup() { |
42 | 0 | setType(WORKGROUP_TYPE); |
43 | 0 | } |
44 | |
|
45 | |
@Override |
46 | |
public void setType(Integer type) { |
47 | 0 | if (!WORKGROUP_TYPE.equals(type)) { |
48 | 0 | throw new IllegalArgumentException("cannot change type to " + type); |
49 | |
} |
50 | 0 | super.setType(type); |
51 | 0 | } |
52 | |
|
53 | |
@Override |
54 | |
public String getName() { |
55 | 0 | return ""; |
56 | |
} |
57 | |
|
58 | |
public String getRecipientNamespaceCode() { |
59 | 0 | return this.recipientNamespaceCode; |
60 | |
} |
61 | |
|
62 | |
public String getRecipientName() { |
63 | 0 | return this.recipientName; |
64 | |
} |
65 | |
|
66 | |
public void setRecipientNamespaceCode(String recipientNamespaceCode) { |
67 | 0 | this.recipientNamespaceCode = recipientNamespaceCode; |
68 | 0 | } |
69 | |
|
70 | |
public void setRecipientName(String recipientName) { |
71 | 0 | this.recipientName = recipientName; |
72 | 0 | } |
73 | |
} |