View Javadoc

1   /*
2    * Copyright 2005-2007 The Kuali Foundation
3    * 
4    * 
5    * Licensed under the Educational Community License, Version 2.0 (the "License");
6    * you may not use this file except in compliance with the License.
7    * You may obtain a copy of the License at
8    * 
9    * http://www.opensource.org/licenses/ecl2.php
10   * 
11   * Unless required by applicable law or agreed to in writing, software
12   * distributed under the License is distributed on an "AS IS" BASIS,
13   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   * See the License for the specific language governing permissions and
15   * limitations under the License.
16   */
17  package org.kuali.rice.kew.help;
18  
19  import javax.persistence.Column;
20  import javax.persistence.Entity;
21  import javax.persistence.Id;
22  import javax.persistence.NamedQueries;
23  import javax.persistence.NamedQuery;
24  import javax.persistence.Table;
25  import javax.persistence.Version;
26  
27  import org.kuali.rice.core.jpa.annotations.Sequence;
28  
29  /**
30   * Model bean representing a piece of help information which adds extra information about fields and
31   * data in the user interface.
32   *
33   * @author Kuali Rice Team (rice.collab@kuali.org)
34   */
35  @Entity
36  @Table(name="KREW_HLP_T")
37  @NamedQueries({
38    @NamedQuery(name="HelpEntry.FindById",  query="select he from HelpEntry he where he.helpId = :helpId"),
39    @NamedQuery(name="HelpEntry.FindByKey",  query="select he from HelpEntry he where he.helpKey = :helpKey")
40  })
41  @Sequence(name="KREW_HLP_S", property="helpId")
42  public class HelpEntry {
43      @Id
44  	@Column(name="HLP_ID")
45  	private Long helpId;
46  	@Column(name="NM")
47  	private String helpName;
48  	@Column(name="HLP_TXT")
49  	private String helpText;
50  	@Column(name="KEY_CD")
51  	private String helpKey;
52  	@Version
53  	@Column(name="VER_NBR")
54  	private Integer lockVerNbr;
55  	
56      public Long getHelpId() {
57          return helpId;
58      }
59      public void setHelpId(Long helpId) {
60          this.helpId = helpId;
61      }
62      public String getHelpName() {
63          return helpName;
64      }
65      public void setHelpName(String helpName) {
66          this.helpName = helpName;
67      }
68      public String getHelpText() {
69      	return helpText;
70      }
71      public void setHelpText(String helpText) {
72      	this.helpText = helpText;
73      }
74      public Integer getLockVerNbr() {
75          return lockVerNbr;
76      }
77      public void setLockVerNbr(Integer lockVerNbr) {
78          this.lockVerNbr = lockVerNbr;
79      }
80      public String getHelpKey() {
81          return helpKey;
82      }
83      public void setHelpKey(String helpKey) {
84          this.helpKey = helpKey;
85      }
86  }
87