1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.rice.kew.doctype; |
17 | |
|
18 | |
import org.kuali.rice.kew.doctype.bo.DocumentType; |
19 | |
import org.kuali.rice.krad.bo.PersistableBusinessObjectBase; |
20 | |
|
21 | |
import javax.persistence.*; |
22 | |
|
23 | |
|
24 | |
|
25 | |
|
26 | |
|
27 | |
|
28 | |
|
29 | |
|
30 | |
|
31 | |
|
32 | |
|
33 | |
|
34 | |
|
35 | |
|
36 | |
|
37 | |
|
38 | |
|
39 | |
|
40 | |
|
41 | |
|
42 | |
@Entity |
43 | |
@Table(name="KREW_DOC_TYP_APP_DOC_STAT_T") |
44 | 0 | public class ApplicationDocumentStatus extends PersistableBusinessObjectBase { |
45 | |
private static final long serialVersionUID = -2212481684546954746L; |
46 | |
|
47 | |
@EmbeddedId |
48 | |
private ApplicationDocumentStatusId applicationDocumentStatusId; |
49 | |
@MapsId("documentTypeId") |
50 | |
@ManyToOne(fetch=FetchType.EAGER) |
51 | |
@JoinColumn(name="DOC_TYP_ID") |
52 | |
private DocumentType documentType; |
53 | |
|
54 | |
@Transient |
55 | |
private String documentTypeId; |
56 | |
@Transient |
57 | |
private String statusName; |
58 | |
|
59 | |
public ApplicationDocumentStatusId getApplicationDocumentStatusId() { |
60 | 0 | if (this.applicationDocumentStatusId == null) { |
61 | 0 | this.applicationDocumentStatusId = new ApplicationDocumentStatusId(); |
62 | |
} |
63 | 0 | return this.applicationDocumentStatusId; |
64 | |
} |
65 | |
|
66 | |
public void setApplicationDocumentStatusId(ApplicationDocumentStatusId documentStatusId) { |
67 | 0 | this.applicationDocumentStatusId = documentStatusId; |
68 | 0 | } |
69 | |
|
70 | |
public String getDocumentTypeId() { |
71 | 0 | return (this.getApplicationDocumentStatusId().getDocumentTypeId() != null) ? this.getApplicationDocumentStatusId().getDocumentTypeId() : this.documentTypeId; |
72 | |
} |
73 | |
|
74 | |
public void setDocumentTypeId(String documentTypeId) { |
75 | 0 | this.documentTypeId = documentTypeId; |
76 | 0 | this.getApplicationDocumentStatusId().setDocumentTypeId(documentTypeId); |
77 | 0 | } |
78 | |
|
79 | |
public String getStatusName() { |
80 | 0 | return (this.getApplicationDocumentStatusId().getStatusName() != null) ? this.getApplicationDocumentStatusId().getStatusName() : this.statusName; |
81 | |
} |
82 | |
|
83 | |
public void setStatusName(String statusName) { |
84 | 0 | this.statusName = statusName; |
85 | 0 | this.getApplicationDocumentStatusId().setStatusName(statusName); |
86 | 0 | } |
87 | |
|
88 | |
public DocumentType getDocumentType() { |
89 | 0 | return this.documentType; |
90 | |
} |
91 | |
|
92 | |
public void setDocumentType(DocumentType documentType) { |
93 | 0 | this.documentType = documentType; |
94 | 0 | } |
95 | |
} |