1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.kew.removereplace;
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.IdClass;
24 import javax.persistence.JoinColumn;
25 import javax.persistence.ManyToOne;
26 import javax.persistence.Table;
27
28
29
30
31
32
33
34 @IdClass(org.kuali.rice.kew.removereplace.WorkgroupTargetId.class)
35 @Entity
36 @Table(name="KREW_RMV_RPLC_GRP_T")
37 public class WorkgroupTarget {
38
39 @Id
40 @Column(name="DOC_HDR_ID")
41 private Long documentId;
42 @Id
43 @Column(name="GRP_ID")
44 private String workgroupId;
45
46
47 @ManyToOne(fetch=FetchType.EAGER, cascade={CascadeType.PERSIST, CascadeType.REMOVE})
48 @JoinColumn(name="DOC_HDR_ID")
49 private RemoveReplaceDocument removeReplaceDocument;
50
51 public Long getDocumentId() {
52 return this.documentId;
53 }
54
55 public void setDocumentId(Long documentId) {
56 this.documentId = documentId;
57 }
58
59 public String getWorkgroupId() {
60 return this.workgroupId;
61 }
62
63 public void setWorkgroupId(String id) {
64 this.workgroupId = id;
65 }
66
67 }
68