001 /**
002 * Copyright 2005-2014 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.kuali.rice.krad.data.jpa.converters.Boolean01Converter;
019 import org.kuali.rice.krad.data.jpa.PortableSequenceGenerator;
020
021 import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
022
023 import javax.persistence.Basic;
024 import javax.persistence.Column;
025 import javax.persistence.Convert;
026 import javax.persistence.Entity;
027 import javax.persistence.FetchType;
028 import javax.persistence.GeneratedValue;
029 import javax.persistence.Id;
030 import javax.persistence.Lob;
031 import javax.persistence.Table;
032
033 /**
034 * EDocLite document definition
035 * Table: en_edoclt_def_t
036 * @author Kuali Rice Team (rice.collab@kuali.org)
037 */
038 @Entity
039 @Table(name="KREW_EDL_DEF_T")
040 public class EDocLiteDefinition extends PersistableBusinessObjectBase {
041
042 private static final long serialVersionUID = 6230450806784021509L;
043 /**
044 * edoclt_def_id
045 */
046 @Id
047 @GeneratedValue(generator="KREW_EDL_S")
048 @PortableSequenceGenerator(name = "KREW_EDL_S")
049 @Column(name = "EDOCLT_DEF_ID", nullable = false)
050 private Long id;
051 /**
052 * edoclt_def_nm
053 */
054 @Column(name="NM", nullable = false)
055 private String name;
056 /**
057 * edoclt_def_xml
058 */
059 @Lob
060 @Basic(fetch=FetchType.LAZY)
061 @Column(name="XML", nullable = false)
062 private String xmlContent;
063 /**
064 * edoclt_def_actv_ind
065 */
066 @Convert(converter=Boolean01Converter.class)
067 @Column(name="ACTV_IND", nullable = false)
068 private Boolean activeInd;
069
070 /**
071 * Returns the edoc lite definition id.
072 * @return the definition id
073 */
074 public Long getId() {
075 return id;
076 }
077
078 /**
079 *
080 * @see #getId()
081 */
082 public void setId(Long id) {
083 this.id = id;
084 }
085
086 /**
087 * Returns the name.
088 * @return the name
089 */
090 public String getName() {
091 return name;
092 }
093
094 /**
095 *
096 * @see #getName()
097 */
098 public void setName(String name) {
099 this.name = name;
100 }
101
102 /**
103 * Returns the xml content.
104 * @return the xml content
105 */
106 public String getXmlContent() {
107 return xmlContent;
108 }
109
110 /**
111 *
112 * @see #getXmlContent()
113 */
114 public void setXmlContent(String xmlContent) {
115 this.xmlContent = xmlContent;
116 }
117
118 /**
119 * Returns true if the record is active, false otherwise.
120 * @return TRUE if the record is active, FALSE otherwise
121 */
122 public Boolean getActiveInd() {
123 return activeInd;
124 }
125
126 /**
127 *
128 * @see #getActiveInd()
129 */
130 public void setActiveInd(Boolean activeInd) {
131 this.activeInd = activeInd;
132 }
133 }