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 java.io.Serializable; |
19 | |
import java.util.List; |
20 | |
|
21 | |
import javax.persistence.CascadeType; |
22 | |
import javax.persistence.Column; |
23 | |
import javax.persistence.Entity; |
24 | |
import javax.persistence.Id; |
25 | |
import javax.persistence.NamedQueries; |
26 | |
import javax.persistence.NamedQuery; |
27 | |
import javax.persistence.OneToMany; |
28 | |
import javax.persistence.Table; |
29 | |
import javax.persistence.Version; |
30 | |
|
31 | |
|
32 | |
|
33 | |
|
34 | |
|
35 | |
|
36 | |
@Entity |
37 | |
@Table(name="KREW_RMV_RPLC_DOC_T") |
38 | |
@NamedQueries({ |
39 | |
@NamedQuery(name="RemoveReplaceDocument.FindByDocumentId",query="select r from RemoveReplaceDocument as r where r.documentId = :documentId") |
40 | |
}) |
41 | 0 | public class RemoveReplaceDocument implements Serializable { |
42 | |
|
43 | |
private static final long serialVersionUID = 6671410167992149054L; |
44 | |
|
45 | |
public static final String REMOVE_OPERATION = "M"; |
46 | |
public static final String REPLACE_OPERATION = "P"; |
47 | |
|
48 | |
@Id |
49 | |
@Column(name="DOC_HDR_ID") |
50 | |
private Long documentId; |
51 | |
@Column(name="PRNCPL_ID") |
52 | |
private String userWorkflowId; |
53 | |
@Column(name="RPLC_PRNCPL_ID") |
54 | |
private String replacementUserWorkflowId; |
55 | |
@Column(name="OPRN") |
56 | |
private String operation; |
57 | |
@OneToMany(cascade={CascadeType.PERSIST, CascadeType.REMOVE, CascadeType.MERGE}, |
58 | |
targetEntity=org.kuali.rice.kew.removereplace.WorkgroupTarget.class, mappedBy="removeReplaceDocument") |
59 | |
private List<WorkgroupTarget> workgroupTargets; |
60 | |
@OneToMany(cascade={CascadeType.PERSIST, CascadeType.REMOVE, CascadeType.MERGE}, |
61 | |
targetEntity=org.kuali.rice.kew.removereplace.RuleTarget.class, mappedBy="removeReplaceDocument") |
62 | |
private List<RuleTarget> ruleTargets; |
63 | |
@Version |
64 | |
@Column(name="VER_NBR") |
65 | |
private Integer lockVerNbr; |
66 | |
|
67 | |
public Long getDocumentId() { |
68 | 0 | return this.documentId; |
69 | |
} |
70 | |
public void setDocumentId(Long documentId) { |
71 | 0 | this.documentId = documentId; |
72 | 0 | } |
73 | |
public String getOperation() { |
74 | 0 | return this.operation; |
75 | |
} |
76 | |
public void setOperation(String operation) { |
77 | 0 | this.operation = operation; |
78 | 0 | } |
79 | |
public List<RuleTarget> getRuleTargets() { |
80 | 0 | return this.ruleTargets; |
81 | |
} |
82 | |
public void setRuleTargets(List<RuleTarget> ruleTargets) { |
83 | 0 | this.ruleTargets = ruleTargets; |
84 | 0 | } |
85 | |
public String getUserWorkflowId() { |
86 | 0 | return this.userWorkflowId; |
87 | |
} |
88 | |
public void setUserWorkflowId(String userWorkflowId) { |
89 | 0 | this.userWorkflowId = userWorkflowId; |
90 | 0 | } |
91 | |
public String getReplacementUserWorkflowId() { |
92 | 0 | return this.replacementUserWorkflowId; |
93 | |
} |
94 | |
public void setReplacementUserWorkflowId(String replacementUserWorkflowId) { |
95 | 0 | this.replacementUserWorkflowId = replacementUserWorkflowId; |
96 | 0 | } |
97 | |
public List<WorkgroupTarget> getWorkgroupTargets() { |
98 | 0 | return this.workgroupTargets; |
99 | |
} |
100 | |
public void setWorkgroupTargets(List<WorkgroupTarget> workgroupTargets) { |
101 | 0 | this.workgroupTargets = workgroupTargets; |
102 | 0 | } |
103 | |
public Integer getLockVerNbr() { |
104 | 0 | return this.lockVerNbr; |
105 | |
} |
106 | |
public void setLockVerNbr(Integer lockVerNbr) { |
107 | 0 | this.lockVerNbr = lockVerNbr; |
108 | 0 | } |
109 | |
|
110 | |
} |
111 | |
|