X-Git-Url: https://gerrit.onap.org/r/gitweb?p=policy%2Fengine.git;a=blobdiff_plain;f=ONAP-REST%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Fpolicy%2Frest%2Fjpa%2FConfigurationDataEntity.java;h=f5ae1817bbf8e809765c97959e3c69740ad354e4;hp=8fd839a18810dcd14052f007195cbf559c71e6ef;hb=0c20d1c294fe146e1018f14b07a8d861c29fe527;hpb=ad162645e845baae599383a227122bcfffb8d326 diff --git a/ONAP-REST/src/main/java/org/onap/policy/rest/jpa/ConfigurationDataEntity.java b/ONAP-REST/src/main/java/org/onap/policy/rest/jpa/ConfigurationDataEntity.java index 8fd839a18..f5ae1817b 100644 --- a/ONAP-REST/src/main/java/org/onap/policy/rest/jpa/ConfigurationDataEntity.java +++ b/ONAP-REST/src/main/java/org/onap/policy/rest/jpa/ConfigurationDataEntity.java @@ -46,7 +46,10 @@ import javax.persistence.Version; * The Entity class to persist a policy object configuration data */ -import lombok.EqualsAndHashCode; +import lombok.Getter; +import lombok.NoArgsConstructor; +import lombok.Setter; +import lombok.ToString; /** * The Class ConfigurationDataEntity. @@ -60,7 +63,10 @@ import lombok.EqualsAndHashCode; @NamedQuery(name = "ConfigurationDataEntity.deleteAll", query = "DELETE FROM ConfigurationDataEntity WHERE 1=1") } ) -@EqualsAndHashCode +@Getter +@Setter +@ToString +@NoArgsConstructor //@formatter:on public class ConfigurationDataEntity implements Serializable { @@ -106,13 +112,6 @@ public class ConfigurationDataEntity implements Serializable { @Column(name = "deleted", nullable = false) private boolean deleted = false; - /** - * Instantiates a new configuration data entity. - */ - public ConfigurationDataEntity() { - // An empty constructor - } - /** * Pre persist. */ @@ -130,175 +129,4 @@ public class ConfigurationDataEntity implements Serializable { public void preUpdate() { this.modifiedDate = new Date(); } - - /** - * Gets the configuration data id. - * - * @return the configurationDataId - */ - public long getConfigurationDataId() { - return configurationDataId; - } - - /** - * Sets the configuration name. - * - * @param configurationName the new configuration name - */ - public void setConfigurationName(String configurationName) { - this.configurationName = configurationName; - } - - /** - * Gets the configuration name. - * - * @return the configuration name - */ - public String getConfigurationName() { - return this.configurationName; - } - - /** - * Gets the config type. - * - * @return the configType - */ - public String getConfigType() { - return configType; - } - - /** - * Sets the config type. - * - * @param configType the configType to set - */ - public void setConfigType(String configType) { - this.configType = configType; - } - - /** - * Gets the config body. - * - * @return the configBody - */ - public String getConfigBody() { - return configBody; - } - - /** - * Sets the config body. - * - * @param configBody the configBody to set - */ - public void setConfigBody(String configBody) { - this.configBody = configBody; - } - - /** - * Gets the created by. - * - * @return the createdBy - */ - public String getCreatedBy() { - return createdBy; - } - - /** - * Sets the created by. - * - * @param createdBy the createdBy to set - */ - public void setCreatedBy(String createdBy) { - this.createdBy = createdBy; - } - - /** - * Gets the description. - * - * @return the description - */ - public String getDescription() { - return description; - } - - /** - * Sets the description. - * - * @param description the description to set - */ - public void setDescription(String description) { - this.description = description; - } - - /** - * Gets the modified by. - * - * @return the modifiedBy - */ - public String getModifiedBy() { - return modifiedBy; - } - - /** - * Sets the modified by. - * - * @param modifiedBy the modifiedBy to set - */ - public void setModifiedBy(String modifiedBy) { - this.modifiedBy = modifiedBy; - } - - /** - * Gets the modified date. - * - * @return the modifiedDate - */ - public Date getModifiedDate() { - return modifiedDate; - } - - /** - * Sets the modified date. - * - * @param modifiedDate the modifiedDate to set - */ - public void setModifiedDate(Date modifiedDate) { - this.modifiedDate = modifiedDate; - } - - /** - * Gets the version. - * - * @return the version - */ - public int getVersion() { - return version; - } - - /** - * Gets the created date. - * - * @return the createdDate - */ - public Date getCreatedDate() { - return createdDate; - } - - /** - * Checks if is deleted. - * - * @return the deleted - */ - public boolean isDeleted() { - return deleted; - } - - /** - * Sets the deleted. - * - * @param deleted the deleted to set - */ - public void setDeleted(boolean deleted) { - this.deleted = deleted; - } }