Replaced all tabs with spaces in java and pom.xml
[so.git] / mso-catalog-db / src / main / java / org / onap / so / db / catalog / beans / NetworkResource.java
index c31cd61..6876200 100644 (file)
@@ -25,7 +25,6 @@ import java.text.DateFormat;
 import java.util.ArrayList;
 import java.util.Date;
 import java.util.List;
-
 import javax.persistence.CascadeType;
 import javax.persistence.Column;
 import javax.persistence.Entity;
@@ -38,268 +37,263 @@ import javax.persistence.PrePersist;
 import javax.persistence.Table;
 import javax.persistence.Temporal;
 import javax.persistence.TemporalType;
-
 import org.apache.commons.lang3.builder.EqualsBuilder;
 import org.apache.commons.lang3.builder.HashCodeBuilder;
-
 import com.openpojo.business.annotation.BusinessKey;
-
 import uk.co.blackpepper.bowman.annotation.LinkedResource;
 
 @Entity
 @Table(name = "network_resource")
 public class NetworkResource implements Serializable {
 
-       private static final long serialVersionUID = 768026109321305392L;
+    private static final long serialVersionUID = 768026109321305392L;
 
-       @BusinessKey
-       @Id
-       @Column(name = "MODEL_UUID")
-       private String modelUUID;
+    @BusinessKey
+    @Id
+    @Column(name = "MODEL_UUID")
+    private String modelUUID;
 
-       @Column(name = "ORCHESTRATION_MODE")
-       private String orchestrationMode = null;
+    @Column(name = "ORCHESTRATION_MODE")
+    private String orchestrationMode = null;
 
-       @Column(name = "DESCRIPTION")
-       private String description = null;
+    @Column(name = "DESCRIPTION")
+    private String description = null;
 
-       @Column(name = "NEUTRON_NETWORK_TYPE")
-       private String neutronNetworkType = null;
+    @Column(name = "NEUTRON_NETWORK_TYPE")
+    private String neutronNetworkType = null;
 
-       @Column(name = "AIC_VERSION_MIN")
-       private String aicVersionMin = null;
+    @Column(name = "AIC_VERSION_MIN")
+    private String aicVersionMin = null;
 
-       @Column(name = "AIC_VERSION_MAX")
-       private String aicVersionMax = null;
+    @Column(name = "AIC_VERSION_MAX")
+    private String aicVersionMax = null;
 
-       @Column(name = "MODEL_NAME")
-       private String modelName;
+    @Column(name = "MODEL_NAME")
+    private String modelName;
 
-       @Column(name = "MODEL_INVARIANT_UUID")
-       private String modelInvariantUUID;
+    @Column(name = "MODEL_INVARIANT_UUID")
+    private String modelInvariantUUID;
 
-       @Column(name = "MODEL_VERSION")
-       private String modelVersion;
+    @Column(name = "MODEL_VERSION")
+    private String modelVersion;
 
-       @Column(name = "TOSCA_NODE_TYPE")
-       private String toscaNodeType;
+    @Column(name = "TOSCA_NODE_TYPE")
+    private String toscaNodeType;
 
-       @Column(name = "RESOURCE_CATEGORY")
-       private String category;
+    @Column(name = "RESOURCE_CATEGORY")
+    private String category;
 
-       @Column(name = "RESOURCE_SUB_CATEGORY")
-       private String subCategory;
+    @Column(name = "RESOURCE_SUB_CATEGORY")
+    private String subCategory;
 
-       @Column(name = "CREATION_TIMESTAMP", updatable = false)
-       @Temporal(TemporalType.TIMESTAMP)
-       private Date created;
+    @Column(name = "CREATION_TIMESTAMP", updatable = false)
+    @Temporal(TemporalType.TIMESTAMP)
+    private Date created;
 
-       @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "networkResource")
-       private List<NetworkResourceCustomization> networkResourceCustomization;
+    @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "networkResource")
+    private List<NetworkResourceCustomization> networkResourceCustomization;
 
-       @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "networkResource")
-       private List<CollectionNetworkResourceCustomization> collectionNetworkResourceCustomization;
+    @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "networkResource")
+    private List<CollectionNetworkResourceCustomization> collectionNetworkResourceCustomization;
 
-       @ManyToOne(cascade = CascadeType.ALL, fetch = FetchType.LAZY)
-       @JoinColumn(name = "HEAT_TEMPLATE_ARTIFACT_UUID")
-       private HeatTemplate heatTemplate;
+    @ManyToOne(cascade = CascadeType.ALL, fetch = FetchType.LAZY)
+    @JoinColumn(name = "HEAT_TEMPLATE_ARTIFACT_UUID")
+    private HeatTemplate heatTemplate;
 
-       @PrePersist
-       protected void onCreate() {
-               this.created = new Date();
-       }
+    @PrePersist
+    protected void onCreate() {
+        this.created = new Date();
+    }
 
-       @Override
-       public boolean equals(final Object other) {
-               if (!(other instanceof NetworkResource)) {
-                       return false;
-               }
-               NetworkResource castOther = (NetworkResource) other;
-               return new EqualsBuilder().append(modelUUID, castOther.modelUUID).isEquals();
-       }
+    @Override
+    public boolean equals(final Object other) {
+        if (!(other instanceof NetworkResource)) {
+            return false;
+        }
+        NetworkResource castOther = (NetworkResource) other;
+        return new EqualsBuilder().append(modelUUID, castOther.modelUUID).isEquals();
+    }
 
-       @Override
-       public int hashCode() {
-               return new HashCodeBuilder().append(modelUUID).toHashCode();
-       }
+    @Override
+    public int hashCode() {
+        return new HashCodeBuilder().append(modelUUID).toHashCode();
+    }
 
-       @LinkedResource
-       public List<NetworkResourceCustomization> getNetworkResourceCustomization() {
-               return networkResourceCustomization;
-       }
+    @LinkedResource
+    public List<NetworkResourceCustomization> getNetworkResourceCustomization() {
+        return networkResourceCustomization;
+    }
 
-       public void addNetworkResourceCustomization(NetworkResourceCustomization networkResourceCustomization) {
-               if (this.networkResourceCustomization == null)
-                       this.networkResourceCustomization = new ArrayList<>();
+    public void addNetworkResourceCustomization(NetworkResourceCustomization networkResourceCustomization) {
+        if (this.networkResourceCustomization == null)
+            this.networkResourceCustomization = new ArrayList<>();
 
-               this.networkResourceCustomization.add(networkResourceCustomization);
-       }
+        this.networkResourceCustomization.add(networkResourceCustomization);
+    }
 
-       public void setNetworkResourceCustomization(List<NetworkResourceCustomization> networkResourceCustomization) {
-               this.networkResourceCustomization = networkResourceCustomization;
-       }
+    public void setNetworkResourceCustomization(List<NetworkResourceCustomization> networkResourceCustomization) {
+        this.networkResourceCustomization = networkResourceCustomization;
+    }
 
-       @LinkedResource
-       public List<CollectionNetworkResourceCustomization> getCollectionNetworkResourceCustomization() {
-               return collectionNetworkResourceCustomization;
-       }
+    @LinkedResource
+    public List<CollectionNetworkResourceCustomization> getCollectionNetworkResourceCustomization() {
+        return collectionNetworkResourceCustomization;
+    }
 
-       public void setCollectionNetworkResourceCustomization(
-                       List<CollectionNetworkResourceCustomization> collectionNetworkResourceCustomization) {
-               this.collectionNetworkResourceCustomization = collectionNetworkResourceCustomization;
-       }
-
-       public String getOrchestrationMode() {
-               return orchestrationMode;
-       }
-
-       public void setOrchestrationMode(String orchestrationMode) {
-               this.orchestrationMode = orchestrationMode;
-       }
-
-       public String getDescription() {
-               return description;
-       }
-
-       public void setDescription(String description) {
-               this.description = description;
-       }
-
-       public String getNeutronNetworkType() {
-               return neutronNetworkType;
-       }
-
-       public void setNeutronNetworkType(String neutronNetworkType) {
-               this.neutronNetworkType = neutronNetworkType;
-       }
-
-       public Date getCreated() {
-               return created;
-       }
-
-       public String getAicVersionMin() {
-               return aicVersionMin;
-       }
-
-       public void setAicVersionMin(String aicVersionMin) {
-               this.aicVersionMin = aicVersionMin;
-       }
-
-       public String getAicVersionMax() {
-               return aicVersionMax;
-       }
-
-       public void setAicVersionMax(String aicVersionMax) {
-               this.aicVersionMax = aicVersionMax;
-       }
-
-       public String getModelName() {
-               return modelName;
-       }
-
-       public void setModelName(String modelName) {
-               this.modelName = modelName;
-       }
-
-       public String getModelInvariantUUID() {
-               return modelInvariantUUID;
-       }
-
-       public void setModelInvariantUUID(String modelInvariantUUID) {
-               this.modelInvariantUUID = modelInvariantUUID;
-       }
-
-       public String getToscaNodeType() {
-               return toscaNodeType;
-       }
-
-       public void setToscaNodeType(String toscaNodeType) {
-               this.toscaNodeType = toscaNodeType;
-       }
-
-       public String getModelUUID() {
-               return modelUUID;
-       }
-
-       public void setModelUUID(String modelUUID) {
-               this.modelUUID = modelUUID;
-       }
-
-       /**
-        * @return Returns the category.
-        */
-       public String getCategory() {
-               return category;
-       }
-
-       /**
-        * @param category
-        *            The category to set.
-        */
-       public void setCategory(String category) {
-               this.category = category;
-       }
-
-       /**
-        * @return Returns the subCategory.
-        */
-       public String getSubCategory() {
-               return subCategory;
-       }
-
-       /**
-        * @param subCategory
-        *            The subCategory to set.
-        */
-       public void setSubCategory(String subCategory) {
-               this.subCategory = subCategory;
-       }
-
-       @LinkedResource
-       public HeatTemplate getHeatTemplate() {
-               return heatTemplate;
-       }
-
-       public void setHeatTemplate(HeatTemplate heatTemplate) {
-               this.heatTemplate = heatTemplate;
-       }
-
-       public String getModelVersion() {
-               return modelVersion;
-       }
-
-       public void setModelVersion(String modelVersion) {
-               this.modelVersion = modelVersion;
-       }
-
-       @Override
-       public String toString() {
-               StringBuilder sb = new StringBuilder();
-               sb.append("NETWORK Resource:");
-               sb.append("modelVersion=");
-               sb.append(modelVersion);
-               sb.append(",mode=");
-               sb.append(orchestrationMode);
-               sb.append(",neutronType=");
-               sb.append(neutronNetworkType);
-               sb.append(",aicVersionMin=");
-               sb.append(aicVersionMin);
-               sb.append(",aicVersionMax=");
-               sb.append(aicVersionMax);
-               sb.append(",modelName=");
-               sb.append(modelName);
-               sb.append(",modelInvariantUUID=");
-               sb.append(modelInvariantUUID);
-               sb.append(",toscaNodeType=");
-               sb.append(toscaNodeType);
-               sb.append(",modelUUID=");
-               sb.append(modelUUID);
-
-               if (created != null) {
-                       sb.append(",created=");
-                       sb.append(DateFormat.getInstance().format(created));
-               }
-
-               return sb.toString();
-       }
+    public void setCollectionNetworkResourceCustomization(
+            List<CollectionNetworkResourceCustomization> collectionNetworkResourceCustomization) {
+        this.collectionNetworkResourceCustomization = collectionNetworkResourceCustomization;
+    }
+
+    public String getOrchestrationMode() {
+        return orchestrationMode;
+    }
+
+    public void setOrchestrationMode(String orchestrationMode) {
+        this.orchestrationMode = orchestrationMode;
+    }
+
+    public String getDescription() {
+        return description;
+    }
+
+    public void setDescription(String description) {
+        this.description = description;
+    }
+
+    public String getNeutronNetworkType() {
+        return neutronNetworkType;
+    }
+
+    public void setNeutronNetworkType(String neutronNetworkType) {
+        this.neutronNetworkType = neutronNetworkType;
+    }
+
+    public Date getCreated() {
+        return created;
+    }
+
+    public String getAicVersionMin() {
+        return aicVersionMin;
+    }
+
+    public void setAicVersionMin(String aicVersionMin) {
+        this.aicVersionMin = aicVersionMin;
+    }
+
+    public String getAicVersionMax() {
+        return aicVersionMax;
+    }
+
+    public void setAicVersionMax(String aicVersionMax) {
+        this.aicVersionMax = aicVersionMax;
+    }
+
+    public String getModelName() {
+        return modelName;
+    }
+
+    public void setModelName(String modelName) {
+        this.modelName = modelName;
+    }
+
+    public String getModelInvariantUUID() {
+        return modelInvariantUUID;
+    }
+
+    public void setModelInvariantUUID(String modelInvariantUUID) {
+        this.modelInvariantUUID = modelInvariantUUID;
+    }
+
+    public String getToscaNodeType() {
+        return toscaNodeType;
+    }
+
+    public void setToscaNodeType(String toscaNodeType) {
+        this.toscaNodeType = toscaNodeType;
+    }
+
+    public String getModelUUID() {
+        return modelUUID;
+    }
+
+    public void setModelUUID(String modelUUID) {
+        this.modelUUID = modelUUID;
+    }
+
+    /**
+     * @return Returns the category.
+     */
+    public String getCategory() {
+        return category;
+    }
+
+    /**
+     * @param category The category to set.
+     */
+    public void setCategory(String category) {
+        this.category = category;
+    }
+
+    /**
+     * @return Returns the subCategory.
+     */
+    public String getSubCategory() {
+        return subCategory;
+    }
+
+    /**
+     * @param subCategory The subCategory to set.
+     */
+    public void setSubCategory(String subCategory) {
+        this.subCategory = subCategory;
+    }
+
+    @LinkedResource
+    public HeatTemplate getHeatTemplate() {
+        return heatTemplate;
+    }
+
+    public void setHeatTemplate(HeatTemplate heatTemplate) {
+        this.heatTemplate = heatTemplate;
+    }
+
+    public String getModelVersion() {
+        return modelVersion;
+    }
+
+    public void setModelVersion(String modelVersion) {
+        this.modelVersion = modelVersion;
+    }
+
+    @Override
+    public String toString() {
+        StringBuilder sb = new StringBuilder();
+        sb.append("NETWORK Resource:");
+        sb.append("modelVersion=");
+        sb.append(modelVersion);
+        sb.append(",mode=");
+        sb.append(orchestrationMode);
+        sb.append(",neutronType=");
+        sb.append(neutronNetworkType);
+        sb.append(",aicVersionMin=");
+        sb.append(aicVersionMin);
+        sb.append(",aicVersionMax=");
+        sb.append(aicVersionMax);
+        sb.append(",modelName=");
+        sb.append(modelName);
+        sb.append(",modelInvariantUUID=");
+        sb.append(modelInvariantUUID);
+        sb.append(",toscaNodeType=");
+        sb.append(toscaNodeType);
+        sb.append(",modelUUID=");
+        sb.append(modelUUID);
+
+        if (created != null) {
+            sb.append(",created=");
+            sb.append(DateFormat.getInstance().format(created));
+        }
+
+        return sb.toString();
+    }
 }