View Javadoc

1   /**
2    * Copyright 2005-2012 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  import java.io.Serializable;
24  
25  /**
26   * Association between WorkflowDocument type -> EDocLite definition, EDocLite style
27   * Table: en_edoclt_assoc_t
28   * @author Kuali Rice Team (rice.collab@kuali.org)
29   */
30  @Entity
31  @Table(name="KREW_EDL_ASSCTN_T")
32  //@Sequence(name="KREW_EDL_S", property="edocLiteAssocId")
33  public class EDocLiteAssociation  extends PersistableBusinessObjectBase implements Serializable{
34  
35  	private static final long serialVersionUID = 7300251507982374010L;
36  	/**
37       * edoclt_assoc_id
38       */
39      @Id
40      @GeneratedValue(generator="KREW_EDL_S")
41  	@GenericGenerator(name="KREW_EDL_S",strategy="org.hibernate.id.enhanced.SequenceStyleGenerator",parameters={
42  			@Parameter(name="sequence_name",value="KREW_EDL_S"),
43  			@Parameter(name="value_column",value="id")
44  	})
45  	@Column(name="EDOCLT_ASSOC_ID")
46  	private Long edocLiteAssocId;
47      /**
48       * edoclt_assoc_doctype_nm
49       */
50      @Column(name="DOC_TYP_NM")
51  	private String edlName;
52      /**
53       * edoclt_assoc_def_nm
54       */
55      @Column(name="EDL_DEF_NM")
56  	private String definition;
57      /**
58       * edoclt_assoc_style_nm
59       */
60      @Column(name="STYLE_NM")
61  	private String style;
62      /**
63       * edoclt_assoc_actv_ind
64       */
65      @Column(name="ACTV_IND")
66  	private Boolean activeInd;
67  
68      @Transient
69      private String actionsUrl;//for quickfinder
70  
71      public Long getEdocLiteAssocId() {
72          return edocLiteAssocId;
73      }
74      public void setEdocLiteAssocId(Long edocLiteAssocId) {
75          this.edocLiteAssocId = edocLiteAssocId;
76      }
77      public String getEdlName() {
78          return edlName;
79      }
80      public void setEdlName(String edlName) {
81          this.edlName = edlName;
82      }
83      public String getDefinition() {
84          return definition;
85      }
86      public void setDefinition(String definition) {
87          this.definition = definition;
88      }
89      public String getStyle() {
90          return style;
91      }
92      public void setStyle(String style) {
93          this.style = style;
94      }
95      public Boolean getActiveInd() {
96          return activeInd;
97      }
98      public void setActiveInd(Boolean activeInd) {
99          this.activeInd = activeInd;
100     }
101 
102 	public String getActionsUrl() {
103 		return actionsUrl;
104 	}
105 	public void setActionsUrl(String actionsUrl) {
106 		this.actionsUrl = actionsUrl;
107 	}
108 }