rsanchez
2014-11-17 04f9a9d2dbd2d79bfffea9c5a6b7ba1b32c5f42b
securis/src/main/java/net/curisit/securis/db/LicenseHistory.java
....@@ -3,6 +3,7 @@
33 import java.io.Serializable;
44 import java.util.Date;
55
6
+import javax.persistence.Column;
67 import javax.persistence.Entity;
78 import javax.persistence.GeneratedValue;
89 import javax.persistence.Id;
....@@ -52,7 +53,9 @@
5253 private String action;
5354 private String comments;
5455
55
- private Date timestamp;
56
+ @Column(name = "creation_timestamp")
57
+ @JsonProperty("creation_timestamp")
58
+ private Date creationTimestamp;
5659
5760 public int getId() {
5861 return id;
....@@ -95,18 +98,18 @@
9598 this.comments = comments;
9699 }
97100
98
- public Date getTimestamp() {
99
- return timestamp;
100
- }
101
-
102
- public void setTimestamp(Date timestamp) {
103
- this.timestamp = timestamp;
104
- }
105
-
106101 public void setId(int id) {
107102 this.id = id;
108103 }
109104
105
+ public Date getCreationTimestamp() {
106
+ return creationTimestamp;
107
+ }
108
+
109
+ public void setCreationTimestamp(Date creationTimestamp) {
110
+ this.creationTimestamp = creationTimestamp;
111
+ }
112
+
110113 public static class Actions {
111114 public static final String CREATE = "creation";
112115 public static final String ADD_REQUEST = "request";