rsanchez
2014-10-17 5805f0a08e69de728bd891d1c09ff32fc297977a
securis/src/main/java/net/curisit/securis/db/Organization.java
....@@ -50,13 +50,14 @@
5050
5151 @Id
5252 @GeneratedValue
53
- private int id;
53
+ private Integer id;
5454
5555 private String code;
5656 private String name;
5757 private String description;
5858
5959 @Column(name = "creation_timestamp")
60
+ @JsonProperty("creation_timestamp")
6061 private Date creationTimestamp;
6162
6263 @JsonIgnore
....@@ -82,11 +83,11 @@
8283 @OneToMany(fetch = FetchType.LAZY, mappedBy = "parentOrganization")
8384 private Set<Organization> childOrganizations;
8485
85
- public int getId() {
86
+ public Integer getId() {
8687 return id;
8788 }
8889
89
- public void setId(int id) {
90
+ public void setId(Integer id) {
9091 this.id = id;
9192 }
9293