1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
package org.kuali.rice.kew.help; |
18 | |
|
19 | |
import javax.persistence.Column; |
20 | |
import javax.persistence.Entity; |
21 | |
import javax.persistence.GeneratedValue; |
22 | |
import javax.persistence.Id; |
23 | |
import javax.persistence.NamedQueries; |
24 | |
import javax.persistence.NamedQuery; |
25 | |
import javax.persistence.Table; |
26 | |
import javax.persistence.Version; |
27 | |
|
28 | |
import org.hibernate.annotations.GenericGenerator; |
29 | |
import org.hibernate.annotations.Parameter; |
30 | |
|
31 | |
|
32 | |
|
33 | |
|
34 | |
|
35 | |
|
36 | |
|
37 | |
@Entity |
38 | |
@Table(name="KREW_HLP_T") |
39 | |
@NamedQueries({ |
40 | |
@NamedQuery(name="HelpEntry.FindById", query="select he from HelpEntry he where he.helpId = :helpId"), |
41 | |
@NamedQuery(name="HelpEntry.FindByKey", query="select he from HelpEntry he where he.helpKey = :helpKey") |
42 | |
}) |
43 | |
|
44 | 0 | public class HelpEntry { |
45 | |
@Id |
46 | |
@GeneratedValue(generator="KREW_HLP_S") |
47 | |
@GenericGenerator(name="KREW_HLP_S",strategy="org.hibernate.id.enhanced.SequenceStyleGenerator",parameters={ |
48 | |
@Parameter(name="sequence_name",value="KREW_HLP_S"), |
49 | |
@Parameter(name="value_column",value="id") |
50 | |
}) |
51 | |
@Column(name="HLP_ID") |
52 | |
private Long helpId; |
53 | |
@Column(name="NM") |
54 | |
private String helpName; |
55 | |
@Column(name="HLP_TXT") |
56 | |
private String helpText; |
57 | |
@Column(name="KEY_CD") |
58 | |
private String helpKey; |
59 | |
@Version |
60 | |
@Column(name="VER_NBR") |
61 | |
private Integer lockVerNbr; |
62 | |
|
63 | |
public Long getHelpId() { |
64 | 0 | return helpId; |
65 | |
} |
66 | |
public void setHelpId(Long helpId) { |
67 | 0 | this.helpId = helpId; |
68 | 0 | } |
69 | |
public String getHelpName() { |
70 | 0 | return helpName; |
71 | |
} |
72 | |
public void setHelpName(String helpName) { |
73 | 0 | this.helpName = helpName; |
74 | 0 | } |
75 | |
public String getHelpText() { |
76 | 0 | return helpText; |
77 | |
} |
78 | |
public void setHelpText(String helpText) { |
79 | 0 | this.helpText = helpText; |
80 | 0 | } |
81 | |
public Integer getLockVerNbr() { |
82 | 0 | return lockVerNbr; |
83 | |
} |
84 | |
public void setLockVerNbr(Integer lockVerNbr) { |
85 | 0 | this.lockVerNbr = lockVerNbr; |
86 | 0 | } |
87 | |
public String getHelpKey() { |
88 | 0 | return helpKey; |
89 | |
} |
90 | |
public void setHelpKey(String helpKey) { |
91 | 0 | this.helpKey = helpKey; |
92 | 0 | } |
93 | |
} |
94 | |
|