1 | |
package org.kuali.student.core.entity; |
2 | |
|
3 | |
import java.util.Date; |
4 | |
|
5 | |
import javax.persistence.Column; |
6 | |
import javax.persistence.Embeddable; |
7 | |
import javax.persistence.Temporal; |
8 | |
import javax.persistence.TemporalType; |
9 | |
|
10 | |
@Embeddable |
11 | 0 | public class Version { |
12 | |
@Column(name = "VER_IND_ID") |
13 | |
private String versionIndId; |
14 | |
|
15 | |
@Column(name = "SEQ_NUM") |
16 | |
private Long sequenceNumber; |
17 | |
|
18 | |
@Temporal(TemporalType.TIMESTAMP) |
19 | |
@Column(name = "CURR_VER_START") |
20 | |
private Date currentVersionStart; |
21 | |
|
22 | |
@Temporal(TemporalType.TIMESTAMP) |
23 | |
@Column(name = "CURR_VER_END") |
24 | |
private Date currentVersionEnd; |
25 | |
|
26 | |
@Column(name = "VER_FROM_ID") |
27 | |
private String versionedFromId; |
28 | |
|
29 | |
@Column(name = "VER_CMT") |
30 | |
private String versionComment; |
31 | |
|
32 | |
public Date getCurrentVersionStart() { |
33 | 0 | return currentVersionStart; |
34 | |
} |
35 | |
|
36 | |
public void setCurrentVersionStart(Date currentVersionStart) { |
37 | 0 | this.currentVersionStart = currentVersionStart; |
38 | 0 | } |
39 | |
|
40 | |
public Date getCurrentVersionEnd() { |
41 | 0 | return currentVersionEnd; |
42 | |
} |
43 | |
|
44 | |
public void setCurrentVersionEnd(Date currentVersionEnd) { |
45 | 0 | this.currentVersionEnd = currentVersionEnd; |
46 | 0 | } |
47 | |
|
48 | |
public String getVersionIndId() { |
49 | 0 | return versionIndId; |
50 | |
} |
51 | |
|
52 | |
public void setVersionIndId(String versionIndId) { |
53 | 0 | this.versionIndId = versionIndId; |
54 | 0 | } |
55 | |
|
56 | |
public Long getSequenceNumber() { |
57 | 0 | return sequenceNumber; |
58 | |
} |
59 | |
|
60 | |
public void setSequenceNumber(Long sequenceNumber) { |
61 | 0 | this.sequenceNumber = sequenceNumber; |
62 | 0 | } |
63 | |
|
64 | |
public String getVersionComment() { |
65 | 0 | return versionComment; |
66 | |
} |
67 | |
|
68 | |
public void setVersionComment(String versionComment) { |
69 | 0 | this.versionComment = versionComment; |
70 | 0 | } |
71 | |
|
72 | |
public String getVersionedFromId() { |
73 | 0 | return versionedFromId; |
74 | |
} |
75 | |
|
76 | |
public void setVersionedFromId(String versionedFromId) { |
77 | 0 | this.versionedFromId = versionedFromId; |
78 | 0 | } |
79 | |
|
80 | |
} |