1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.mobility.emergencyinfo.entity;
17
18 import javax.persistence.*;
19 import java.io.Serializable;
20
21 @NamedQueries({
22 @NamedQuery(
23 name="EmergencyInfo.findAll",
24 query="select ei from EmergencyInfo ei order by ei.order"
25 ),
26 @NamedQuery(
27 name="EmergencyInfo.findById",
28 query="select ei from EmergencyInfo ei where ei.emergencyInfoId = :id"
29 ),
30 @NamedQuery(
31 name="EmergencyInfo.findByCampus",
32 query="select ei from EmergencyInfo ei where ei.campus like :campus order by ei.order"
33 ),
34 @NamedQuery(
35 name="EmergencyInfo.deleteById",
36 query="delete from EmergencyInfo ei where ei.emergencyInfoId = :id"
37 )
38 })
39
40 @Entity(name="EmergencyInfo")
41 @Table(name="KME_EM_INFO_T")
42 public class EmergencyInfoJPAImpl implements Serializable, EmergencyInfo {
43
44 private static final long serialVersionUID = 8753764116073085733L;
45
46 @Id
47 @GeneratedValue(strategy = GenerationType.TABLE)
48 @Column(name="ID")
49 private Long emergencyInfoId;
50
51 @Column(name="TYP")
52 private String type;
53
54 @Column(name="TTL")
55 private String title;
56
57 @Column(name="LNK")
58 private String link;
59
60 @Column(name="CMPS")
61 private String campus;
62
63 @Column(name="ORDR")
64 private int order;
65
66 @Version
67 @Column(name="VER_NBR")
68 protected Long versionNumber;
69
70 public EmergencyInfoJPAImpl() {
71 }
72
73 @Override
74 public Long getVersionNumber() {
75 return versionNumber;
76 }
77
78 @Override
79 public void setVersionNumber(Long versionNumber) {
80 this.versionNumber = versionNumber;
81 }
82
83 @Override
84 public Long getEmergencyInfoId() {
85 return emergencyInfoId;
86 }
87
88 @Override
89 public void setEmergencyInfoId(Long emergencyInfoId) {
90 this.emergencyInfoId = emergencyInfoId;
91 }
92
93 @Override
94 public String getType() {
95 return type;
96 }
97
98 @Override
99 public void setType(String type) {
100 this.type = type;
101 }
102
103 @Override
104 public String getTitle() {
105 return title;
106 }
107
108 @Override
109 public void setTitle(String title) {
110 this.title = title;
111 }
112
113 @Override
114 public String getLink() {
115 return link;
116 }
117
118 @Override
119 public void setLink(String link) {
120 this.link = link;
121 }
122
123 @Override
124 public String getCampus() {
125 return campus;
126 }
127
128 @Override
129 public void setCampus(String campus) {
130 this.campus = campus;
131 }
132
133 @Override
134 public int getOrder() {
135 return order;
136 }
137
138 @Override
139 public void setOrder(int order) {
140 this.order = order;
141 }
142
143 }