Roberto Sánchez
2014-09-19 8d5386be38db25a2a41c3bf6c876adee21ca26cc
securis/src/main/java/net/curisit/securis/db/LicenseType.java
....@@ -30,93 +30,92 @@
3030 @JsonIgnoreProperties(ignoreUnknown = true)
3131 @Entity
3232 @Table(name = "license_type")
33
-@NamedQueries(
34
- { @NamedQuery(name = "list-license_types", query = "SELECT lt FROM LicenseType lt") })
33
+@NamedQueries({ @NamedQuery(name = "list-license_types", query = "SELECT lt FROM LicenseType lt") })
3534 public class LicenseType implements Serializable {
3635
37
- private static final Logger LOG = LogManager.getLogger(LicenseType.class);
38
- private static final long serialVersionUID = 1L;
36
+ private static final Logger LOG = LogManager.getLogger(LicenseType.class);
37
+ private static final long serialVersionUID = 1L;
3938
40
- @Id
41
- @GeneratedValue
42
- private int id;
39
+ @Id
40
+ @GeneratedValue
41
+ private int id;
4342
44
- private String code;
45
- private String name;
46
- private String description;
43
+ private String code;
44
+ private String name;
45
+ private String description;
4746
48
- @Column(name = "creation_timestamp")
49
- private Date creationTimestamp;
47
+ @Column(name = "creation_timestamp")
48
+ private Date creationTimestamp;
5049
51
- @JsonIgnore
52
- @ManyToOne
53
- @JoinColumn(name = "application_id")
54
- private Application application;
50
+ @JsonIgnore
51
+ @ManyToOne
52
+ @JoinColumn(name = "application_id")
53
+ private Application application;
5554
56
- public int getId() {
57
- return id;
58
- }
55
+ public int getId() {
56
+ return id;
57
+ }
5958
60
- public void setId(Integer id) {
61
- this.id = id;
62
- }
59
+ public void setId(Integer id) {
60
+ this.id = id;
61
+ }
6362
64
- public String getName() {
65
- return name;
66
- }
63
+ public String getName() {
64
+ return name;
65
+ }
6766
68
- public void setName(String name) {
69
- this.name = name;
70
- }
67
+ public void setName(String name) {
68
+ this.name = name;
69
+ }
7170
72
- public String getDescription() {
73
- return description;
74
- }
71
+ public String getDescription() {
72
+ return description;
73
+ }
7574
76
- public void setDescription(String description) {
77
- this.description = description;
78
- }
75
+ public void setDescription(String description) {
76
+ this.description = description;
77
+ }
7978
80
- public String getCode() {
81
- return code;
82
- }
79
+ public String getCode() {
80
+ return code;
81
+ }
8382
84
- public void setCode(String code) {
85
- this.code = code;
86
- }
83
+ public void setCode(String code) {
84
+ this.code = code;
85
+ }
8786
88
- public Application getApplication() {
89
- return application;
90
- }
87
+ public Application getApplication() {
88
+ return application;
89
+ }
9190
92
- @JsonProperty("application_name")
93
- public String getParentOrgName() {
94
- return application == null ? null : application.getName();
95
- }
91
+ @JsonProperty("application_name")
92
+ public String getParentOrgName() {
93
+ return application == null ? null : application.getName();
94
+ }
9695
97
- @JsonProperty("application_id")
98
- public Integer getApplicationId() {
99
- LOG.info("application " + application);
100
- return application == null ? null : application.getId();
101
- }
96
+ @JsonProperty("application_id")
97
+ public Integer getApplicationId() {
98
+ LOG.info("application " + application);
99
+ return application == null ? null : application.getId();
100
+ }
102101
103
- @JsonProperty("application_id")
104
- public void setApplicationId(Integer appId) {
105
- LOG.info("setApplicationId(Integer appId) " + appId);
106
- application = new Application();
107
- application.setId(appId);
108
- }
102
+ @JsonProperty("application_id")
103
+ public void setApplicationId(Integer appId) {
104
+ LOG.info("setApplicationId(Integer appId) " + appId);
105
+ application = new Application();
106
+ application.setId(appId);
107
+ }
109108
110
- public void setApplication(Application application) {
111
- this.application = application;
112
- }
109
+ public void setApplication(Application application) {
110
+ this.application = application;
111
+ }
113112
114
- public Date getCreationTimestamp() {
115
- return creationTimestamp;
116
- }
113
+ public Date getCreationTimestamp() {
114
+ return creationTimestamp;
115
+ }
117116
118
- public void setCreationTimestamp(Date creationTimestamp) {
119
- this.creationTimestamp = creationTimestamp;
120
- }
117
+ public void setCreationTimestamp(Date creationTimestamp) {
118
+ this.creationTimestamp = creationTimestamp;
119
+ }
121120
122121 }