View Javadoc

1   /*
2    * Copyright 2005-2008 The Kuali Foundation
3    * 
4    * 
5    * Licensed under the Educational Community License, Version 2.0 (the "License");
6    * you may not use this file except in compliance with the License.
7    * You may obtain a copy of the License at
8    * 
9    * http://www.opensource.org/licenses/ecl2.php
10   * 
11   * Unless required by applicable law or agreed to in writing, software
12   * distributed under the License is distributed on an "AS IS" BASIS,
13   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   * See the License for the specific language governing permissions and
15   * limitations under the License.
16   */
17  package org.kuali.rice.kew.routeheader;
18  
19  import java.io.Serializable;
20  
21  import javax.persistence.Basic;
22  import javax.persistence.Column;
23  import javax.persistence.Entity;
24  import javax.persistence.FetchType;
25  import javax.persistence.Id;
26  import javax.persistence.Lob;
27  import javax.persistence.NamedQuery;
28  import javax.persistence.Table;
29  
30  import org.kuali.rice.core.jpa.annotations.Sequence;
31  
32  @Entity
33  @Table(name="KREW_DOC_HDR_CNTNT_T")
34  @NamedQuery(name="DocumentRouteHeaderValueContent.FindByRouteHeaderId", query="select d from DocumentRouteHeaderValueContent as d where d.routeHeaderId = :routeHeaderId")
35  public class DocumentRouteHeaderValueContent implements Serializable {
36  
37  	/**
38  	 * 
39  	 */
40  	private static final long serialVersionUID = 1L;
41  	@Id
42  	@Column(name="DOC_HDR_ID")
43  	private Long routeHeaderId;
44  	@Lob
45  	@Basic(fetch=FetchType.LAZY)
46  	@Column(name="DOC_CNTNT_TXT")
47  	private String documentContent;
48  		
49  	public DocumentRouteHeaderValueContent() {}
50  	
51  	public DocumentRouteHeaderValueContent(Long routeHeaderId) {
52  		this.routeHeaderId = routeHeaderId;
53  	}
54  	
55  	public String getDocumentContent() {
56  		return documentContent;
57  	}
58  	public void setDocumentContent(String documentContent) {
59  		this.documentContent = documentContent;
60  	}
61  	public Long getRouteHeaderId() {
62  		return routeHeaderId;
63  	}
64  	public void setRouteHeaderId(Long routeHeaderId) {
65  		this.routeHeaderId = routeHeaderId;
66  	}
67  
68  }
69