| .. | .. |
|---|
| 26 | 26 | @JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL) |
|---|
| 27 | 27 | @Entity |
|---|
| 28 | 28 | @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") }) |
|---|
| 31 | 30 | public class Application implements Serializable { |
|---|
| 32 | 31 | |
|---|
| 33 | | - private static final long serialVersionUID = 1L; |
|---|
| 32 | + private static final long serialVersionUID = 1L; |
|---|
| 34 | 33 | |
|---|
| 35 | | - @Id |
|---|
| 36 | | - @GeneratedValue |
|---|
| 37 | | - private int id; |
|---|
| 34 | + @Id |
|---|
| 35 | + @GeneratedValue |
|---|
| 36 | + private int id; |
|---|
| 38 | 37 | |
|---|
| 39 | | - private String name; |
|---|
| 40 | | - private String description; |
|---|
| 38 | + private String name; |
|---|
| 39 | + private String description; |
|---|
| 41 | 40 | |
|---|
| 42 | | - @Column(name = "creation_timestamp") |
|---|
| 43 | | - private Date creationTimestamp; |
|---|
| 41 | + @Column(name = "creation_timestamp") |
|---|
| 42 | + private Date creationTimestamp; |
|---|
| 44 | 43 | |
|---|
| 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; |
|---|
| 49 | 49 | |
|---|
| 50 | | - public int getId() { |
|---|
| 51 | | - return id; |
|---|
| 52 | | - } |
|---|
| 50 | + public int getId() { |
|---|
| 51 | + return id; |
|---|
| 52 | + } |
|---|
| 53 | 53 | |
|---|
| 54 | | - public void setId(int id) { |
|---|
| 55 | | - this.id = id; |
|---|
| 56 | | - } |
|---|
| 54 | + public void setId(int id) { |
|---|
| 55 | + this.id = id; |
|---|
| 56 | + } |
|---|
| 57 | 57 | |
|---|
| 58 | | - public String getName() { |
|---|
| 59 | | - return name; |
|---|
| 60 | | - } |
|---|
| 58 | + public String getName() { |
|---|
| 59 | + return name; |
|---|
| 60 | + } |
|---|
| 61 | 61 | |
|---|
| 62 | | - public void setName(String name) { |
|---|
| 63 | | - this.name = name; |
|---|
| 64 | | - } |
|---|
| 62 | + public void setName(String name) { |
|---|
| 63 | + this.name = name; |
|---|
| 64 | + } |
|---|
| 65 | 65 | |
|---|
| 66 | | - public String getDescription() { |
|---|
| 67 | | - return description; |
|---|
| 68 | | - } |
|---|
| 66 | + public String getDescription() { |
|---|
| 67 | + return description; |
|---|
| 68 | + } |
|---|
| 69 | 69 | |
|---|
| 70 | | - public void setDescription(String description) { |
|---|
| 71 | | - this.description = description; |
|---|
| 72 | | - } |
|---|
| 70 | + public void setDescription(String description) { |
|---|
| 71 | + this.description = description; |
|---|
| 72 | + } |
|---|
| 73 | 73 | |
|---|
| 74 | | - public Date getCreationTimestamp() { |
|---|
| 75 | | - return creationTimestamp; |
|---|
| 76 | | - } |
|---|
| 74 | + public Date getCreationTimestamp() { |
|---|
| 75 | + return creationTimestamp; |
|---|
| 76 | + } |
|---|
| 77 | 77 | |
|---|
| 78 | | - public void setCreationTimestamp(Date creationTimestamp) { |
|---|
| 79 | | - this.creationTimestamp = creationTimestamp; |
|---|
| 80 | | - } |
|---|
| 78 | + public void setCreationTimestamp(Date creationTimestamp) { |
|---|
| 79 | + this.creationTimestamp = creationTimestamp; |
|---|
| 80 | + } |
|---|
| 81 | 81 | |
|---|
| 82 | | - public Set<LicenseType> getLicenseTypes() { |
|---|
| 83 | | - return licenseTypes; |
|---|
| 84 | | - } |
|---|
| 82 | + public Set<LicenseType> getLicenseTypes() { |
|---|
| 83 | + return licenseTypes; |
|---|
| 84 | + } |
|---|
| 85 | 85 | |
|---|
| 86 | | - public void setLicenseTypes(Set<LicenseType> licenseTypes) { |
|---|
| 87 | | - this.licenseTypes = licenseTypes; |
|---|
| 88 | | - } |
|---|
| 86 | + public void setLicenseTypes(Set<LicenseType> licenseTypes) { |
|---|
| 87 | + this.licenseTypes = licenseTypes; |
|---|
| 88 | + } |
|---|
| 89 | 89 | |
|---|
| 90 | 90 | } |
|---|