| .. | .. |
|---|
| 30 | 30 | @JsonIgnoreProperties(ignoreUnknown = true) |
|---|
| 31 | 31 | @Entity |
|---|
| 32 | 32 | @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") }) |
|---|
| 35 | 34 | public class LicenseType implements Serializable { |
|---|
| 36 | 35 | |
|---|
| 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; |
|---|
| 39 | 38 | |
|---|
| 40 | | - @Id |
|---|
| 41 | | - @GeneratedValue |
|---|
| 42 | | - private int id; |
|---|
| 39 | + @Id |
|---|
| 40 | + @GeneratedValue |
|---|
| 41 | + private int id; |
|---|
| 43 | 42 | |
|---|
| 44 | | - private String code; |
|---|
| 45 | | - private String name; |
|---|
| 46 | | - private String description; |
|---|
| 43 | + private String code; |
|---|
| 44 | + private String name; |
|---|
| 45 | + private String description; |
|---|
| 47 | 46 | |
|---|
| 48 | | - @Column(name = "creation_timestamp") |
|---|
| 49 | | - private Date creationTimestamp; |
|---|
| 47 | + @Column(name = "creation_timestamp") |
|---|
| 48 | + private Date creationTimestamp; |
|---|
| 50 | 49 | |
|---|
| 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; |
|---|
| 55 | 54 | |
|---|
| 56 | | - public int getId() { |
|---|
| 57 | | - return id; |
|---|
| 58 | | - } |
|---|
| 55 | + public int getId() { |
|---|
| 56 | + return id; |
|---|
| 57 | + } |
|---|
| 59 | 58 | |
|---|
| 60 | | - public void setId(Integer id) { |
|---|
| 61 | | - this.id = id; |
|---|
| 62 | | - } |
|---|
| 59 | + public void setId(Integer id) { |
|---|
| 60 | + this.id = id; |
|---|
| 61 | + } |
|---|
| 63 | 62 | |
|---|
| 64 | | - public String getName() { |
|---|
| 65 | | - return name; |
|---|
| 66 | | - } |
|---|
| 63 | + public String getName() { |
|---|
| 64 | + return name; |
|---|
| 65 | + } |
|---|
| 67 | 66 | |
|---|
| 68 | | - public void setName(String name) { |
|---|
| 69 | | - this.name = name; |
|---|
| 70 | | - } |
|---|
| 67 | + public void setName(String name) { |
|---|
| 68 | + this.name = name; |
|---|
| 69 | + } |
|---|
| 71 | 70 | |
|---|
| 72 | | - public String getDescription() { |
|---|
| 73 | | - return description; |
|---|
| 74 | | - } |
|---|
| 71 | + public String getDescription() { |
|---|
| 72 | + return description; |
|---|
| 73 | + } |
|---|
| 75 | 74 | |
|---|
| 76 | | - public void setDescription(String description) { |
|---|
| 77 | | - this.description = description; |
|---|
| 78 | | - } |
|---|
| 75 | + public void setDescription(String description) { |
|---|
| 76 | + this.description = description; |
|---|
| 77 | + } |
|---|
| 79 | 78 | |
|---|
| 80 | | - public String getCode() { |
|---|
| 81 | | - return code; |
|---|
| 82 | | - } |
|---|
| 79 | + public String getCode() { |
|---|
| 80 | + return code; |
|---|
| 81 | + } |
|---|
| 83 | 82 | |
|---|
| 84 | | - public void setCode(String code) { |
|---|
| 85 | | - this.code = code; |
|---|
| 86 | | - } |
|---|
| 83 | + public void setCode(String code) { |
|---|
| 84 | + this.code = code; |
|---|
| 85 | + } |
|---|
| 87 | 86 | |
|---|
| 88 | | - public Application getApplication() { |
|---|
| 89 | | - return application; |
|---|
| 90 | | - } |
|---|
| 87 | + public Application getApplication() { |
|---|
| 88 | + return application; |
|---|
| 89 | + } |
|---|
| 91 | 90 | |
|---|
| 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 | + } |
|---|
| 96 | 95 | |
|---|
| 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 | + } |
|---|
| 102 | 101 | |
|---|
| 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 | + } |
|---|
| 109 | 108 | |
|---|
| 110 | | - public void setApplication(Application application) { |
|---|
| 111 | | - this.application = application; |
|---|
| 112 | | - } |
|---|
| 109 | + public void setApplication(Application application) { |
|---|
| 110 | + this.application = application; |
|---|
| 111 | + } |
|---|
| 113 | 112 | |
|---|
| 114 | | - public Date getCreationTimestamp() { |
|---|
| 115 | | - return creationTimestamp; |
|---|
| 116 | | - } |
|---|
| 113 | + public Date getCreationTimestamp() { |
|---|
| 114 | + return creationTimestamp; |
|---|
| 115 | + } |
|---|
| 117 | 116 | |
|---|
| 118 | | - public void setCreationTimestamp(Date creationTimestamp) { |
|---|
| 119 | | - this.creationTimestamp = creationTimestamp; |
|---|
| 120 | | - } |
|---|
| 117 | + public void setCreationTimestamp(Date creationTimestamp) { |
|---|
| 118 | + this.creationTimestamp = creationTimestamp; |
|---|
| 119 | + } |
|---|
| 121 | 120 | |
|---|
| 122 | 121 | } |
|---|