1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.rice.kew.routeheader; |
17 | |
|
18 | |
import org.hibernate.annotations.GenericGenerator; |
19 | |
import org.hibernate.annotations.Parameter; |
20 | |
import org.kuali.rice.krad.bo.PersistableBusinessObjectBase; |
21 | |
|
22 | |
import javax.persistence.*; |
23 | |
import java.sql.Timestamp; |
24 | |
|
25 | |
|
26 | |
|
27 | |
|
28 | |
|
29 | |
|
30 | |
|
31 | |
|
32 | |
@Entity |
33 | |
@Table(name="KREW_APP_DOC_STAT_TRAN_T") |
34 | |
public class DocumentStatusTransition extends PersistableBusinessObjectBase { |
35 | |
private static final long serialVersionUID = -2212481684546954746L; |
36 | |
|
37 | |
@Id |
38 | |
@GeneratedValue(generator="KREW_DOC_HDR_S") |
39 | |
@GenericGenerator(name="KREW_DOC_HDR_S",strategy="org.hibernate.id.enhanced.SequenceStyleGenerator",parameters={ |
40 | |
@Parameter(name="sequence_name",value="KREW_DOC_HDR_S"), |
41 | |
@Parameter(name="value_column",value="id") |
42 | |
}) |
43 | |
@Column(name="APP_DOC_STAT_TRAN_ID") |
44 | |
private String statusTransitionId; |
45 | |
|
46 | |
@Column(name="DOC_HDR_ID") |
47 | |
private String documentId; |
48 | |
|
49 | |
@Column(name="APP_DOC_STAT_FROM") |
50 | |
private String oldAppDocStatus; |
51 | |
|
52 | |
@Column(name="APP_DOC_STAT_TO") |
53 | |
private String newAppDocStatus; |
54 | |
|
55 | |
@Column(name="STAT_TRANS_DATE") |
56 | |
private java.sql.Timestamp statusTransitionDate; |
57 | |
|
58 | 0 | public DocumentStatusTransition() { |
59 | 0 | } |
60 | |
|
61 | 0 | public DocumentStatusTransition(String documentId, String oldStatus, String newStatus) { |
62 | 0 | this.documentId = documentId; |
63 | 0 | this.oldAppDocStatus = oldStatus; |
64 | 0 | this.newAppDocStatus = newStatus; |
65 | 0 | this.statusTransitionDate = new Timestamp(System.currentTimeMillis()); |
66 | 0 | } |
67 | |
|
68 | |
public String getStatusTransitionId() { |
69 | 0 | return this.statusTransitionId; |
70 | |
} |
71 | |
|
72 | |
public void setStatusTransitionId(String statusTransitionId) { |
73 | 0 | this.statusTransitionId = statusTransitionId; |
74 | 0 | } |
75 | |
|
76 | |
public String getDocumentId() { |
77 | 0 | return this.documentId; |
78 | |
} |
79 | |
|
80 | |
public void setDocumentId(String documentId) { |
81 | 0 | this.documentId = documentId; |
82 | 0 | } |
83 | |
|
84 | |
public String getOldAppDocStatus() { |
85 | 0 | return this.oldAppDocStatus; |
86 | |
} |
87 | |
|
88 | |
public void setOldAppDocStatus(String oldAppDocStatus) { |
89 | 0 | this.oldAppDocStatus = oldAppDocStatus; |
90 | 0 | } |
91 | |
|
92 | |
public String getNewAppDocStatus() { |
93 | 0 | return this.newAppDocStatus; |
94 | |
} |
95 | |
|
96 | |
public void setNewAppDocStatus(String newAppDocStatus) { |
97 | 0 | this.newAppDocStatus = newAppDocStatus; |
98 | 0 | } |
99 | |
|
100 | |
public java.sql.Timestamp getStatusTransitionDate() { |
101 | 0 | return this.statusTransitionDate; |
102 | |
} |
103 | |
|
104 | |
public void setStatusTransitionDate(java.sql.Timestamp statusTransitionDate) { |
105 | 0 | this.statusTransitionDate = statusTransitionDate; |
106 | 0 | } |
107 | |
} |