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
33
34
35 @Entity
36 @Table(name = "KRMS_CNTXT_VLD_AGENDA_TYP_T")
37 public class ContextValidAgendaBo implements Versioned, Serializable {
38
39 private static final long serialVersionUID = 1l;
40
41 @PortableSequenceGenerator(name = "KRMS_CNTXT_VLD_AGENDA_TYP_S")
42 @GeneratedValue(generator = "KRMS_CNTXT_VLD_AGENDA_TYP_S")
43 @Id
44 @Column(name = "CNTXT_VLD_AGENDA_ID")
45 private String id;
46
47 @Column(name = "CNTXT_ID")
48 private String contextId;
49
50 @Column(name = "AGENDA_TYP_ID")
51 private String agendaTypeId;
52
53 @Column(name = "VER_NBR")
54 @Version
55 private Long versionNumber;
56
57 @ManyToOne(targetEntity = KrmsTypeBo.class, cascade = { CascadeType.REFRESH })
58 @JoinColumn(name = "AGENDA_TYP_ID", referencedColumnName = "TYP_ID", insertable = false, updatable = false)
59 private KrmsTypeBo agendaType;
60
61 public String getId() {
62 return id;
63 }
64
65 public void setId(String id) {
66 this.id = id;
67 }
68
69 public String getContextId() {
70 return contextId;
71 }
72
73 public void setContextId(String contextId) {
74 this.contextId = contextId;
75 }
76
77 public String getAgendaTypeId() {
78 return agendaTypeId;
79 }
80
81 public void setAgendaTypeId(String agendaTypeId) {
82 this.agendaTypeId = agendaTypeId;
83 }
84
85 public Long getVersionNumber() {
86 return versionNumber;
87 }
88
89 public void setVersionNumber(Long versionNumber) {
90 this.versionNumber = versionNumber;
91 }
92
93 public KrmsTypeBo getAgendaType() {
94 return agendaType;
95 }
96
97 public void setAgendaType(KrmsTypeBo agendaType) {
98 this.agendaType = agendaType;
99 }
100 }