rsanchez
2014-10-17 5805f0a08e69de728bd891d1c09ff32fc297977a
securis/src/main/java/net/curisit/securis/db/Pack.java
....@@ -49,6 +49,7 @@
4949 private String comments;
5050
5151 @Column(name = "creation_timestamp")
52
+ @JsonProperty("creation_timestamp")
5253 private Date creationTimestamp;
5354
5455 @JsonIgnore
....@@ -82,7 +83,7 @@
8283 @JsonProperty("end_valid_date")
8384 private Date endValidDate;
8485
85
- private String status;
86
+ private PackStatus status;
8687
8788 @Column(name = "license_preactivation")
8889 @JsonProperty("license_preactivation")
....@@ -91,11 +92,11 @@
9192 @OneToMany(fetch = FetchType.LAZY, mappedBy = "pack")
9293 private Set<PackMetadata> metadata;
9394
94
- public int getId() {
95
+ public Integer getId() {
9596 return id;
9697 }
9798
98
- public void setId(int id) {
99
+ public void setId(Integer id) {
99100 this.id = id;
100101 }
101102
....@@ -281,11 +282,11 @@
281282 this.metadata = metadata;
282283 }
283284
284
- public String getStatus() {
285
+ public PackStatus getStatus() {
285286 return status;
286287 }
287288
288
- public void setStatus(String status) {
289
+ public void setStatus(PackStatus status) {
289290 this.status = status;
290291 }
291292