From 1a0491f2462d2c309bd8e310b22c11019a79ce1e Mon Sep 17 00:00:00 2001
From: rsanchez <rsanchez@curisit.net>
Date: Mon, 20 Mar 2017 16:02:14 +0000
Subject: [PATCH] #3527 fix - Added applications forms and metadata component
---
securis/src/main/java/net/curisit/securis/db/PackMetadata.java | 116 +++++++++++++++++++++++++++++-----------------------------
1 files changed, 58 insertions(+), 58 deletions(-)
diff --git a/securis/src/main/java/net/curisit/securis/db/PackMetadata.java b/securis/src/main/java/net/curisit/securis/db/PackMetadata.java
index 5bb9ab3..8a73abe 100644
--- a/securis/src/main/java/net/curisit/securis/db/PackMetadata.java
+++ b/securis/src/main/java/net/curisit/securis/db/PackMetadata.java
@@ -13,6 +13,7 @@
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -25,82 +26,81 @@
@JsonInclude(Include.NON_NULL)
@Entity
@Table(name = "pack_metadata")
-@NamedQueries({
- @NamedQuery(name = "list-pack-metadata", query = "SELECT a FROM PackMetadata a where a.pack.id = :packId")
-})
+@JsonIgnoreProperties(value = { "readonly" })
+@NamedQueries({ @NamedQuery(name = "list-pack-metadata", query = "SELECT a FROM PackMetadata a where a.pack.id = :packId") })
public class PackMetadata implements Serializable {
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = 1L;
- @Id
- @JsonIgnore
- @ManyToOne
- @JoinColumn(name = "pack_id")
- private Pack pack;
+ @Id
+ @JsonIgnore
+ @ManyToOne
+ @JoinColumn(name = "pack_id")
+ private Pack pack;
- @Id
- @Column(name = "\"key\"")
- private String key;
+ @Id
+ @Column(name = "\"key\"")
+ private String key;
- private String value;
+ private String value;
- private boolean readonly;
+ private boolean readonly;
- private boolean mandatory;
+ private boolean mandatory;
- @JsonProperty("pack_id")
- public Integer getPackId() {
- return pack == null ? null : pack.getId();
- }
+ @JsonProperty("pack_id")
+ public Integer getPackId() {
+ return pack == null ? null : pack.getId();
+ }
- @JsonProperty("pack_id")
- public void setLicenseTypeId(Integer idPack) {
- if (idPack == null) {
- pack = null;
- } else {
- pack = new Pack();
- pack.setId(idPack);
- }
- }
+ @JsonProperty("pack_id")
+ public void setLicenseTypeId(Integer idPack) {
+ if (idPack == null) {
+ pack = null;
+ } else {
+ pack = new Pack();
+ pack.setId(idPack);
+ }
+ }
- public Pack getPack() {
- return pack;
- }
+ public Pack getPack() {
+ return pack;
+ }
- public void setPack(Pack pack) {
- this.pack = pack;
- }
+ public void setPack(Pack pack) {
+ this.pack = pack;
+ }
- public String getValue() {
- return value;
- }
+ public String getValue() {
+ return value;
+ }
- public void setValue(String value) {
- this.value = value;
- }
+ public void setValue(String value) {
+ this.value = value;
+ }
- public String getKey() {
- return key;
- }
+ public String getKey() {
+ return key;
+ }
- public void setKey(String key) {
- this.key = key;
- }
+ public void setKey(String key) {
+ this.key = key;
+ }
- public boolean isReadonly() {
- return readonly;
- }
+ public boolean isReadonly() {
+ return readonly;
+ }
- public void setReadonly(boolean readonly) {
- this.readonly = readonly;
- }
+ public void setReadonly(boolean readonly) {
+ this.readonly = readonly;
+ }
- public boolean isMandatory() {
- return mandatory;
- }
+ public boolean isMandatory() {
+ return mandatory;
+ }
- public void setMandatory(boolean mandatory) {
- this.mandatory = mandatory;
- }
+ public void setMandatory(boolean mandatory) {
+ this.mandatory = mandatory;
+ }
}
--
Gitblit v1.3.2