1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
package org.kuali.rice.kew.edl.bo; |
18 | |
|
19 | |
import java.util.LinkedHashMap; |
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.Table; |
28 | |
|
29 | |
import org.kuali.rice.core.jpa.annotations.Sequence; |
30 | |
import org.kuali.rice.kew.bo.KewPersistableBusinessObjectBase; |
31 | |
|
32 | |
|
33 | |
|
34 | |
|
35 | |
|
36 | |
|
37 | |
@Entity |
38 | |
@Table(name="KREW_STYLE_T") |
39 | |
@Sequence(name="KREW_EDL_S", property="edocLiteStyleId") |
40 | 0 | public class EDocLiteStyle extends KewPersistableBusinessObjectBase{ |
41 | |
private static final long serialVersionUID = 2020611019976731725L; |
42 | |
|
43 | |
|
44 | |
|
45 | |
@Id |
46 | |
@Column(name="STYLE_ID") |
47 | |
private Long edocLiteStyleId; |
48 | |
|
49 | |
|
50 | |
|
51 | |
@Column(name="NM") |
52 | |
private String name; |
53 | |
|
54 | |
|
55 | |
|
56 | |
@Lob |
57 | |
@Basic(fetch=FetchType.LAZY) |
58 | |
@Column(name="XML") |
59 | |
private String xmlContent; |
60 | |
|
61 | |
|
62 | |
|
63 | |
@Column(name="ACTV_IND") |
64 | |
private Boolean activeInd; |
65 | |
|
66 | |
public Long getEdocLiteStyleId() { |
67 | 0 | return edocLiteStyleId; |
68 | |
} |
69 | |
public void setEdocLiteStyleId(Long docLiteStyleId) { |
70 | 0 | edocLiteStyleId = docLiteStyleId; |
71 | 0 | } |
72 | |
public String getName() { |
73 | 0 | return name; |
74 | |
} |
75 | |
public void setName(String name) { |
76 | 0 | this.name = name; |
77 | 0 | } |
78 | |
public String getXmlContent() { |
79 | 0 | return xmlContent; |
80 | |
} |
81 | |
public void setXmlContent(String xmlContent) { |
82 | 0 | this.xmlContent = xmlContent; |
83 | 0 | } |
84 | |
public Boolean getActiveInd() { |
85 | 0 | return activeInd; |
86 | |
} |
87 | |
public void setActiveInd(Boolean activeInd) { |
88 | 0 | this.activeInd = activeInd; |
89 | 0 | } |
90 | |
|
91 | |
public String toString() { |
92 | 0 | return "[EDocLiteStyle: edocLiteStyleId=" + edocLiteStyleId |
93 | |
+ ", name=" + name |
94 | |
+ ", xml=" + (xmlContent == null ? xmlContent : xmlContent.length() + "chars") |
95 | |
+ ", activeInd=" + activeInd |
96 | |
+ ", versionNumber=" + versionNumber |
97 | |
+ "]"; |
98 | |
} |
99 | |
|
100 | |
|
101 | |
|
102 | |
|
103 | |
|
104 | |
@Override |
105 | |
protected LinkedHashMap<String, Object> toStringMapper() { |
106 | 0 | LinkedHashMap<String, Object> propMap = new LinkedHashMap<String, Object>(); |
107 | 0 | propMap.put("edocLiteStyleId",getEdocLiteStyleId()); |
108 | 0 | propMap.put("name",getName()); |
109 | 0 | propMap.put("xmlContent",(xmlContent == null ? xmlContent : xmlContent.length() + "chars")); |
110 | 0 | propMap.put("activeInd",getActiveInd()); |
111 | 0 | propMap.put("versionNumber",getVersionNumber()); |
112 | 0 | return propMap; |
113 | |
|
114 | |
} |
115 | |
} |