1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.ken.bo;
17
18 import org.hibernate.annotations.GenericGenerator;
19 import org.hibernate.annotations.Parameter;
20 import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
21
22 import javax.persistence.*;
23
24
25
26
27
28
29
30
31 @Entity
32 @Table(name="KREN_PRIO_T")
33 public class NotificationPriority extends PersistableBusinessObjectBase{
34 @Id
35 @GeneratedValue(generator="KREN_PRIO_S")
36 @GenericGenerator(name="KREN_PRIO_S",strategy="org.hibernate.id.enhanced.SequenceStyleGenerator",parameters={
37 @Parameter(name="sequence_name",value="KREN_PRIO_S"),
38 @Parameter(name="value_column",value="id")
39 })
40 @Column(name="PRIO_ID")
41 private Long id;
42 @Column(name="NM", nullable=false)
43 private String name;
44 @Column(name="DESC_TXT", nullable=false)
45 private String description;
46 @Column(name="PRIO_ORD", nullable=false)
47 private Integer order;
48
49
50
51
52 public NotificationPriority() {
53 }
54
55
56
57
58
59 public String getDescription() {
60 return description;
61 }
62
63
64
65
66
67 public void setDescription(String description) {
68 this.description = description;
69 }
70
71
72
73
74
75 public Long getId() {
76 return id;
77 }
78
79
80
81
82
83 public void setId(Long id) {
84 this.id = id;
85 }
86
87
88
89
90
91 public String getName() {
92 return name;
93 }
94
95
96
97
98
99 public void setName(String name) {
100 this.name = name;
101 }
102
103
104
105
106
107 public Integer getOrder() {
108 return order;
109 }
110
111
112
113
114
115 public void setOrder(Integer order) {
116 this.order = order;
117 }
118 }
119