Roberto Sánchez
2014-09-19 8d5386be38db25a2a41c3bf6c876adee21ca26cc
securis/src/main/java/net/curisit/securis/db/Application.java
....@@ -26,65 +26,65 @@
2626 @JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
2727 @Entity
2828 @Table(name = "application")
29
-@NamedQueries(
30
- { @NamedQuery(name = "list-applications", query = "SELECT a FROM Application a") })
29
+@NamedQueries({ @NamedQuery(name = "list-applications", query = "SELECT a FROM Application a") })
3130 public class Application implements Serializable {
3231
33
- private static final long serialVersionUID = 1L;
32
+ private static final long serialVersionUID = 1L;
3433
35
- @Id
36
- @GeneratedValue
37
- private int id;
34
+ @Id
35
+ @GeneratedValue
36
+ private int id;
3837
39
- private String name;
40
- private String description;
38
+ private String name;
39
+ private String description;
4140
42
- @Column(name = "creation_timestamp")
43
- private Date creationTimestamp;
41
+ @Column(name = "creation_timestamp")
42
+ private Date creationTimestamp;
4443
45
- @JsonIgnore
46
- // We don't include the referenced entities to limit the size of each row at the listing
47
- @OneToMany(fetch = FetchType.LAZY, mappedBy = "application")
48
- private Set<LicenseType> licenseTypes;
44
+ @JsonIgnore
45
+ // We don't include the referenced entities to limit the size of each row at
46
+ // the listing
47
+ @OneToMany(fetch = FetchType.LAZY, mappedBy = "application")
48
+ private Set<LicenseType> licenseTypes;
4949
50
- public int getId() {
51
- return id;
52
- }
50
+ public int getId() {
51
+ return id;
52
+ }
5353
54
- public void setId(int id) {
55
- this.id = id;
56
- }
54
+ public void setId(int id) {
55
+ this.id = id;
56
+ }
5757
58
- public String getName() {
59
- return name;
60
- }
58
+ public String getName() {
59
+ return name;
60
+ }
6161
62
- public void setName(String name) {
63
- this.name = name;
64
- }
62
+ public void setName(String name) {
63
+ this.name = name;
64
+ }
6565
66
- public String getDescription() {
67
- return description;
68
- }
66
+ public String getDescription() {
67
+ return description;
68
+ }
6969
70
- public void setDescription(String description) {
71
- this.description = description;
72
- }
70
+ public void setDescription(String description) {
71
+ this.description = description;
72
+ }
7373
74
- public Date getCreationTimestamp() {
75
- return creationTimestamp;
76
- }
74
+ public Date getCreationTimestamp() {
75
+ return creationTimestamp;
76
+ }
7777
78
- public void setCreationTimestamp(Date creationTimestamp) {
79
- this.creationTimestamp = creationTimestamp;
80
- }
78
+ public void setCreationTimestamp(Date creationTimestamp) {
79
+ this.creationTimestamp = creationTimestamp;
80
+ }
8181
82
- public Set<LicenseType> getLicenseTypes() {
83
- return licenseTypes;
84
- }
82
+ public Set<LicenseType> getLicenseTypes() {
83
+ return licenseTypes;
84
+ }
8585
86
- public void setLicenseTypes(Set<LicenseType> licenseTypes) {
87
- this.licenseTypes = licenseTypes;
88
- }
86
+ public void setLicenseTypes(Set<LicenseType> licenseTypes) {
87
+ this.licenseTypes = licenseTypes;
88
+ }
8989
9090 }