1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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