View Javadoc

1   /**
2    * Copyright 2005-2011 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.rice.edl.impl.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   * EDocLite document definition
26   * Table: en_edoclt_def_t
27   * @author Kuali Rice Team (rice.collab@kuali.org)
28   */
29  @Entity
30  @Table(name="KREW_EDL_DEF_T")
31  //@Sequence(name="KREW_EDL_S", property="eDocLiteDefId")
32  public class EDocLiteDefinition  extends PersistableBusinessObjectBase {
33      private static final long serialVersionUID = 6230450806784021509L;
34      /**
35       * edoclt_def_id
36       */
37      @Id
38      @GeneratedValue(generator="KREW_EDL_S")
39  	@GenericGenerator(name="KREW_EDL_S",strategy="org.hibernate.id.enhanced.SequenceStyleGenerator",parameters={
40  			@Parameter(name="sequence_name",value="KREW_EDL_S"),
41  			@Parameter(name="value_column",value="id")
42  	})
43      @Column(name = "EDOCLT_DEF_ID")
44  	private Long eDocLiteDefId;
45      /**
46       * edoclt_def_nm
47       */
48      @Column(name="NM")
49  	private String name;
50      /**
51       * edoclt_def_xml
52       */
53      @Lob
54  	@Basic(fetch=FetchType.LAZY)
55  	@Column(name="XML")
56  	private String xmlContent;
57      /**
58       * edoclt_def_actv_ind
59       */
60      @Column(name="ACTV_IND")
61  	private Boolean activeInd;
62  
63      public Long getEDocLiteDefId() {
64          return eDocLiteDefId;
65      }
66      public void setEDocLiteDefId(Long eDocLiteDefId) {
67          this.eDocLiteDefId = eDocLiteDefId;
68      }
69      public String getName() {
70          return name;
71      }
72      public void setName(String name) {
73          this.name = name;
74      }
75      public String getXmlContent() {
76          return xmlContent;
77      }
78      public void setXmlContent(String xmlContent) {
79          this.xmlContent = xmlContent;
80      }
81      public Boolean getActiveInd() {
82          return activeInd;
83      }
84      public void setActiveInd(Boolean activeInd) {
85          this.activeInd = activeInd;
86      }
87  }