Roberto Sánchez
2014-09-19 8d5386be38db25a2a41c3bf6c876adee21ca26cc
securis/src/main/java/net/curisit/securis/db/LicenseHistory.java
....@@ -27,91 +27,90 @@
2727 @Entity
2828 @Table(name = "license_history")
2929 @JsonIgnoreProperties(ignoreUnknown = true)
30
-@NamedQueries(
31
- { @NamedQuery(name = "list-license-history", query = "SELECT lh FROM LicenseHistory lh where lh.license.id = :licId") })
30
+@NamedQueries({ @NamedQuery(name = "list-license-history", query = "SELECT lh FROM LicenseHistory lh where lh.license.id = :licId") })
3231 public class LicenseHistory implements Serializable {
3332
34
- private static final long serialVersionUID = 1L;
33
+ private static final long serialVersionUID = 1L;
3534
36
- @Id
37
- @GeneratedValue
38
- private int id;
35
+ @Id
36
+ @GeneratedValue
37
+ private int id;
3938
40
- @JsonIgnore
41
- @ManyToOne
42
- @JoinColumn(name = "license_id")
43
- private License license;
39
+ @JsonIgnore
40
+ @ManyToOne
41
+ @JoinColumn(name = "license_id")
42
+ private License license;
4443
45
- @JsonIgnore
46
- @ManyToOne
47
- @JoinColumn(name = "username")
48
- private User user;
44
+ @JsonIgnore
45
+ @ManyToOne
46
+ @JoinColumn(name = "username")
47
+ private User user;
4948
50
- private String action;
51
- private String comments;
49
+ private String action;
50
+ private String comments;
5251
53
- private Date timestamp;
52
+ private Date timestamp;
5453
55
- public int getId() {
56
- return id;
57
- }
54
+ public int getId() {
55
+ return id;
56
+ }
5857
59
- public License getLicense() {
60
- return license;
61
- }
58
+ public License getLicense() {
59
+ return license;
60
+ }
6261
63
- public void setLicense(License license) {
64
- this.license = license;
65
- }
62
+ public void setLicense(License license) {
63
+ this.license = license;
64
+ }
6665
67
- public User getUser() {
68
- return user;
69
- }
66
+ public User getUser() {
67
+ return user;
68
+ }
7069
71
- @JsonProperty("username")
72
- public String getUsername() {
73
- return user == null ? null : user.getUsername();
74
- }
70
+ @JsonProperty("username")
71
+ public String getUsername() {
72
+ return user == null ? null : user.getUsername();
73
+ }
7574
76
- public void setUser(User user) {
77
- this.user = user;
78
- }
75
+ public void setUser(User user) {
76
+ this.user = user;
77
+ }
7978
80
- public String getAction() {
81
- return action;
82
- }
79
+ public String getAction() {
80
+ return action;
81
+ }
8382
84
- public void setAction(String action) {
85
- this.action = action;
86
- }
83
+ public void setAction(String action) {
84
+ this.action = action;
85
+ }
8786
88
- public String getComments() {
89
- return comments;
90
- }
87
+ public String getComments() {
88
+ return comments;
89
+ }
9190
92
- public void setComments(String comments) {
93
- this.comments = comments;
94
- }
91
+ public void setComments(String comments) {
92
+ this.comments = comments;
93
+ }
9594
96
- public Date getTimestamp() {
97
- return timestamp;
98
- }
95
+ public Date getTimestamp() {
96
+ return timestamp;
97
+ }
9998
100
- public void setTimestamp(Date timestamp) {
101
- this.timestamp = timestamp;
102
- }
99
+ public void setTimestamp(Date timestamp) {
100
+ this.timestamp = timestamp;
101
+ }
103102
104
- public void setId(int id) {
105
- this.id = id;
106
- }
103
+ public void setId(int id) {
104
+ this.id = id;
105
+ }
107106
108
- public static class Actions {
109
- public static final String CREATE = "creation";
110
- public static final String ADD_REQUEST = "request";
111
- public static final String SEND = "send";
112
- public static final String MODIFY = "modify";
113
- public static final String ACTIVATE = "activate";
114
- public static final String CANCEL = "cancel";
115
- public static final String DELETE = "delete";
116
- }
107
+ public static class Actions {
108
+ public static final String CREATE = "creation";
109
+ public static final String ADD_REQUEST = "request";
110
+ public static final String SEND = "send";
111
+ public static final String MODIFY = "modify";
112
+ public static final String ACTIVATE = "activate";
113
+ public static final String CANCEL = "cancel";
114
+ public static final String DELETE = "delete";
115
+ }
117116 }