-/*\r
- * Copyright © 2017-2018 AT&T Intellectual Property.\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- * http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-\r
-package org.onap.ccsdk.apps.controllerblueprints.service.domain;\r
-\r
-import com.fasterxml.jackson.annotation.JsonFormat;\r
-import com.fasterxml.jackson.databind.JsonNode;\r
-import io.swagger.annotations.ApiModelProperty;\r
-import org.springframework.data.annotation.LastModifiedDate;\r
-import org.springframework.data.jpa.domain.support.AuditingEntityListener;\r
-\r
-import javax.persistence.*;\r
-import java.io.Serializable;\r
-import java.util.Date;\r
-\r
-\r
-/**\r
- * AsdcReference.java Purpose: Provide Configuration Generator AsdcReference Entity\r
- *\r
- * @author Brinda Santh\r
- * @version 1.0\r
- */\r
-@EntityListeners({AuditingEntityListener.class})\r
-@Entity\r
-@Table(name = "MODEL_TYPE")\r
-public class ModelType implements Serializable {\r
- private static final long serialVersionUID = 1L;\r
-\r
- @Id\r
- @Column(name = "model_name", nullable = false)\r
- @ApiModelProperty(required=true)\r
- private String modelName;\r
-\r
- @Column(name = "derived_from", nullable = false)\r
- @ApiModelProperty(required=true)\r
- private String derivedFrom;\r
-\r
- @Column(name = "definition_type", nullable = false)\r
- @ApiModelProperty(required=true)\r
- private String definitionType;\r
-\r
- @Lob\r
- @Convert(converter = JpaJsonNodeConverter.class)\r
- @Column(name = "definition", nullable = false)\r
- @ApiModelProperty(required=true)\r
- private JsonNode definition;\r
-\r
- @Lob\r
- @Column(name = "description", nullable = false)\r
- @ApiModelProperty(required=true)\r
- private String description;\r
-\r
- @Column(name = "version", nullable = false)\r
- @ApiModelProperty(required=true)\r
- private String version;\r
-\r
- @Lob\r
- @Column(name = "tags", nullable = false)\r
- @ApiModelProperty(required=true)\r
- private String tags;\r
-\r
- @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")\r
- @LastModifiedDate\r
- @Temporal(TemporalType.TIMESTAMP)\r
- @Column(name = "creation_date")\r
- private Date creationDate;\r
-\r
- @Column(name = "updated_by", nullable = false)\r
- @ApiModelProperty(required=true)\r
- private String updatedBy;\r
-\r
- @Override\r
- public String toString() {\r
- return "[" + "modelName = " + modelName +\r
- ", derivedFrom = " + derivedFrom +\r
- ", definitionType = " + definitionType +\r
- ", description = " + description +\r
- ", creationDate = " + creationDate +\r
- ", version = " + version +\r
- ", updatedBy = " + updatedBy +\r
- ", tags = " + tags +\r
- "]";\r
- }\r
-\r
- public String getModelName() {\r
- return modelName;\r
- }\r
-\r
- public void setModelName(String modelName) {\r
- this.modelName = modelName;\r
- }\r
-\r
- public String getDerivedFrom() {\r
- return derivedFrom;\r
- }\r
-\r
- public void setDerivedFrom(String derivedFrom) {\r
- this.derivedFrom = derivedFrom;\r
- }\r
-\r
- public String getDefinitionType() {\r
- return definitionType;\r
- }\r
-\r
- public void setDefinitionType(String definitionType) {\r
- this.definitionType = definitionType;\r
- }\r
-\r
- public JsonNode getDefinition() {\r
- return definition;\r
- }\r
-\r
- public void setDefinition(JsonNode definition) {\r
- this.definition = definition;\r
- }\r
-\r
- public String getDescription() {\r
- return description;\r
- }\r
-\r
- public void setDescription(String description) {\r
- this.description = description;\r
- }\r
-\r
- public String getVersion() {\r
- return version;\r
- }\r
-\r
- public void setVersion(String version) {\r
- this.version = version;\r
- }\r
-\r
- public String getTags() {\r
- return tags;\r
- }\r
-\r
- public void setTags(String tags) {\r
- this.tags = tags;\r
- }\r
-\r
- public Date getCreationDate() {\r
- return creationDate;\r
- }\r
-\r
- public void setCreationDate(Date creationDate) {\r
- this.creationDate = creationDate;\r
- }\r
-\r
- public String getUpdatedBy() {\r
- return updatedBy;\r
- }\r
-\r
- public void setUpdatedBy(String updatedBy) {\r
- this.updatedBy = updatedBy;\r
- }\r
-\r
-\r
-}\r
+/*
+ * Copyright © 2017-2018 AT&T Intellectual Property.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.onap.ccsdk.cds.controllerblueprints.service.domain;
+
+import com.fasterxml.jackson.annotation.JsonFormat;
+import com.fasterxml.jackson.databind.JsonNode;
+import io.swagger.annotations.ApiModelProperty;
+import org.springframework.data.annotation.LastModifiedDate;
+import org.springframework.data.jpa.domain.support.AuditingEntityListener;
+
+import javax.persistence.*;
+import java.io.Serializable;
+import java.util.Date;
+
+
+/**
+ * AsdcReference.java Purpose: Provide Configuration Generator AsdcReference Entity
+ *
+ * @author Brinda Santh
+ * @version 1.0
+ */
+@EntityListeners({AuditingEntityListener.class})
+@Entity
+@Table(name = "MODEL_TYPE")
+public class ModelType implements Serializable {
+ private static final long serialVersionUID = 1L;
+
+ @Id
+ @Column(name = "model_name", nullable = false)
+ @ApiModelProperty(required=true)
+ private String modelName;
+
+ @Column(name = "derived_from", nullable = false)
+ @ApiModelProperty(required=true)
+ private String derivedFrom;
+
+ @Column(name = "definition_type", nullable = false)
+ @ApiModelProperty(required=true)
+ private String definitionType;
+
+ @Lob
+ @Convert(converter = JpaJsonNodeConverter.class)
+ @Column(name = "definition", nullable = false)
+ @ApiModelProperty(required=true)
+ private JsonNode definition;
+
+ @Lob
+ @Column(name = "description", nullable = false)
+ @ApiModelProperty(required=true)
+ private String description;
+
+ @Column(name = "version", nullable = false)
+ @ApiModelProperty(required=true)
+ private String version;
+
+ @Lob
+ @Column(name = "tags", nullable = false)
+ @ApiModelProperty(required=true)
+ private String tags;
+
+ @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")
+ @LastModifiedDate
+ @Temporal(TemporalType.TIMESTAMP)
+ @Column(name = "creation_date")
+ private Date creationDate;
+
+ @Column(name = "updated_by", nullable = false)
+ @ApiModelProperty(required=true)
+ private String updatedBy;
+
+ @Override
+ public String toString() {
+ return "[" + "modelName = " + modelName +
+ ", derivedFrom = " + derivedFrom +
+ ", definitionType = " + definitionType +
+ ", description = " + description +
+ ", creationDate = " + creationDate +
+ ", version = " + version +
+ ", updatedBy = " + updatedBy +
+ ", tags = " + tags +
+ "]";
+ }
+
+ public String getModelName() {
+ return modelName;
+ }
+
+ public void setModelName(String modelName) {
+ this.modelName = modelName;
+ }
+
+ public String getDerivedFrom() {
+ return derivedFrom;
+ }
+
+ public void setDerivedFrom(String derivedFrom) {
+ this.derivedFrom = derivedFrom;
+ }
+
+ public String getDefinitionType() {
+ return definitionType;
+ }
+
+ public void setDefinitionType(String definitionType) {
+ this.definitionType = definitionType;
+ }
+
+ public JsonNode getDefinition() {
+ return definition;
+ }
+
+ public void setDefinition(JsonNode definition) {
+ this.definition = definition;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ public String getVersion() {
+ return version;
+ }
+
+ public void setVersion(String version) {
+ this.version = version;
+ }
+
+ public String getTags() {
+ return tags;
+ }
+
+ public void setTags(String tags) {
+ this.tags = tags;
+ }
+
+ public Date getCreationDate() {
+ return creationDate;
+ }
+
+ public void setCreationDate(Date creationDate) {
+ this.creationDate = creationDate;
+ }
+
+ public String getUpdatedBy() {
+ return updatedBy;
+ }
+
+ public void setUpdatedBy(String updatedBy) {
+ this.updatedBy = updatedBy;
+ }
+
+
+}