001/** 002 * Copyright 2005-2016 The Kuali Foundation 003 * 004 * Licensed under the Educational Community License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.opensource.org/licenses/ecl2.php 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016package org.kuali.rice.edl.impl.bo; 017 018import org.hibernate.annotations.GenericGenerator; 019import org.hibernate.annotations.Parameter; 020import org.kuali.rice.krad.bo.PersistableBusinessObjectBase; 021 022import javax.persistence.*; 023import java.io.Serializable; 024 025/** 026 * Association between WorkflowDocument type -> EDocLite definition, EDocLite style 027 * Table: en_edoclt_assoc_t 028 * @author Kuali Rice Team (rice.collab@kuali.org) 029 */ 030@Entity 031@Table(name="KREW_EDL_ASSCTN_T") 032//@Sequence(name="KREW_EDL_S", property="edocLiteAssocId") 033public class EDocLiteAssociation extends PersistableBusinessObjectBase implements Serializable{ 034 035 private static final long serialVersionUID = 7300251507982374010L; 036 /** 037 * edoclt_assoc_id 038 */ 039 @Id 040 @GeneratedValue(generator="KREW_EDL_S") 041 @GenericGenerator(name="KREW_EDL_S",strategy="org.hibernate.id.enhanced.SequenceStyleGenerator",parameters={ 042 @Parameter(name="sequence_name",value="KREW_EDL_S"), 043 @Parameter(name="value_column",value="id") 044 }) 045 @Column(name="EDOCLT_ASSOC_ID") 046 private Long edocLiteAssocId; 047 /** 048 * edoclt_assoc_doctype_nm 049 */ 050 @Column(name="DOC_TYP_NM") 051 private String edlName; 052 /** 053 * edoclt_assoc_def_nm 054 */ 055 @Column(name="EDL_DEF_NM") 056 private String definition; 057 /** 058 * edoclt_assoc_style_nm 059 */ 060 @Column(name="STYLE_NM") 061 private String style; 062 /** 063 * edoclt_assoc_actv_ind 064 */ 065 @Column(name="ACTV_IND") 066 private Boolean activeInd; 067 068 @Transient 069 private String actionsUrl;//for quickfinder 070 071 public Long getEdocLiteAssocId() { 072 return edocLiteAssocId; 073 } 074 public void setEdocLiteAssocId(Long edocLiteAssocId) { 075 this.edocLiteAssocId = edocLiteAssocId; 076 } 077 public String getEdlName() { 078 return edlName; 079 } 080 public void setEdlName(String edlName) { 081 this.edlName = edlName; 082 } 083 public String getDefinition() { 084 return definition; 085 } 086 public void setDefinition(String definition) { 087 this.definition = definition; 088 } 089 public String getStyle() { 090 return style; 091 } 092 public void setStyle(String style) { 093 this.style = style; 094 } 095 public Boolean getActiveInd() { 096 return activeInd; 097 } 098 public void setActiveInd(Boolean activeInd) { 099 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}