1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.krms.impl.repository;
17
18 import org.kuali.rice.core.api.mo.common.Versioned;
19 import org.kuali.rice.krad.data.jpa.PortableSequenceGenerator;
20
21 import javax.persistence.CascadeType;
22 import javax.persistence.Column;
23 import javax.persistence.Entity;
24 import javax.persistence.GeneratedValue;
25 import javax.persistence.Id;
26 import javax.persistence.JoinColumn;
27 import javax.persistence.ManyToOne;
28 import javax.persistence.Table;
29 import javax.persistence.Version;
30 import java.io.Serializable;
31
32 @Entity
33 @Table(name = "KRMS_CNTXT_VLD_RULE_TYP_T")
34 public class ContextValidRuleBo implements Versioned, Serializable {
35
36 private static final long serialVersionUID = 1l;
37
38 @PortableSequenceGenerator(name = "KRMS_CNTXT_VLD_RULE_TYP_S")
39 @GeneratedValue(generator = "KRMS_CNTXT_VLD_RULE_TYP_S")
40 @Id
41 @Column(name = "CNTXT_VLD_RULE_ID")
42 private String id;
43
44 @Column(name = "CNTXT_ID")
45 private String contextId;
46
47 @Column(name = "RULE_TYP_ID")
48 private String ruleTypeId;
49
50 @Column(name = "VER_NBR")
51 @Version
52 private Long versionNumber;
53
54 @ManyToOne(targetEntity = KrmsTypeBo.class, cascade = { CascadeType.REFRESH })
55 @JoinColumn(name = "RULE_TYP_ID", referencedColumnName = "TYP_ID", insertable = false, updatable = false)
56 private KrmsTypeBo ruleType;
57
58 public String getId() {
59 return id;
60 }
61
62 public void setId(String id) {
63 this.id = id;
64 }
65
66 public String getContextId() {
67 return contextId;
68 }
69
70 public void setContextId(String contextId) {
71 this.contextId = contextId;
72 }
73
74 public String getRuleTypeId() {
75 return ruleTypeId;
76 }
77
78 public void setRuleTypeId(String ruleTypeId) {
79 this.ruleTypeId = ruleTypeId;
80 }
81
82 public Long getVersionNumber() {
83 return versionNumber;
84 }
85
86 public void setVersionNumber(Long versionNumber) {
87 this.versionNumber = versionNumber;
88 }
89
90 public KrmsTypeBo getRuleType() {
91 return ruleType;
92 }
93
94 public void setRuleType(KrmsTypeBo ruleType) {
95 this.ruleType = ruleType;
96 }
97 }