001    /**
002     * Copyright 2005-2013 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     */
016    package org.kuali.rice.edl.impl.bo;
017    
018    import org.hibernate.annotations.GenericGenerator;
019    import org.hibernate.annotations.Parameter;
020    import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
021    
022    import javax.persistence.*;
023    
024    /**
025     * EDocLite document definition
026     * Table: en_edoclt_def_t
027     * @author Kuali Rice Team (rice.collab@kuali.org)
028     */
029    @Entity
030    @Table(name="KREW_EDL_DEF_T")
031    //@Sequence(name="KREW_EDL_S", property="eDocLiteDefId")
032    public class EDocLiteDefinition  extends PersistableBusinessObjectBase {
033        private static final long serialVersionUID = 6230450806784021509L;
034        /**
035         * edoclt_def_id
036         */
037        @Id
038        @GeneratedValue(generator="KREW_EDL_S")
039            @GenericGenerator(name="KREW_EDL_S",strategy="org.hibernate.id.enhanced.SequenceStyleGenerator",parameters={
040                            @Parameter(name="sequence_name",value="KREW_EDL_S"),
041                            @Parameter(name="value_column",value="id")
042            })
043        @Column(name = "EDOCLT_DEF_ID")
044            private Long eDocLiteDefId;
045        /**
046         * edoclt_def_nm
047         */
048        @Column(name="NM")
049            private String name;
050        /**
051         * edoclt_def_xml
052         */
053        @Lob
054            @Basic(fetch=FetchType.LAZY)
055            @Column(name="XML")
056            private String xmlContent;
057        /**
058         * edoclt_def_actv_ind
059         */
060        @Column(name="ACTV_IND")
061            private Boolean activeInd;
062    
063        public Long getEDocLiteDefId() {
064            return eDocLiteDefId;
065        }
066        public void setEDocLiteDefId(Long eDocLiteDefId) {
067            this.eDocLiteDefId = eDocLiteDefId;
068        }
069        public String getName() {
070            return name;
071        }
072        public void setName(String name) {
073            this.name = name;
074        }
075        public String getXmlContent() {
076            return xmlContent;
077        }
078        public void setXmlContent(String xmlContent) {
079            this.xmlContent = xmlContent;
080        }
081        public Boolean getActiveInd() {
082            return activeInd;
083        }
084        public void setActiveInd(Boolean activeInd) {
085            this.activeInd = activeInd;
086        }
087    }