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.RuleTargetId.class) |
35 | |
@Entity |
36 | |
@Table(name="KREW_RMV_RPLC_RULE_T") |
37 | 0 | public class RuleTarget { |
38 | |
|
39 | |
@Id |
40 | |
@Column(name="DOC_HDR_ID") |
41 | |
private Long documentId; |
42 | |
@Id |
43 | |
@Column(name="RULE_ID") |
44 | |
private Long ruleId; |
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 | 0 | return this.documentId; |
53 | |
} |
54 | |
|
55 | |
public void setDocumentId(Long documentId) { |
56 | 0 | this.documentId = documentId; |
57 | 0 | } |
58 | |
|
59 | |
public Long getRuleId() { |
60 | 0 | return this.ruleId; |
61 | |
} |
62 | |
|
63 | |
public void setRuleId(Long id) { |
64 | 0 | this.ruleId = id; |
65 | 0 | } |
66 | |
|
67 | |
} |
68 | |
|