/* * Copyright © 2017-2018 AT&T Intellectual Property. * Modifications Copyright © 2019 Bell Canada. * * 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.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import org.springframework.data.annotation.LastModifiedDate; import javax.persistence.*; import java.io.Serializable; import java.util.Date; @Entity @Table(name = "CONFIG_MODEL") @JsonTypeName("blueprintModel") @JsonTypeInfo(include= JsonTypeInfo.As.WRAPPER_OBJECT, use=JsonTypeInfo.Id.NAME) public class BlueprintModelSearch implements Serializable { private static final long serialVersionUID = 1L; @Id @Column(name = "config_model_id") private String id; @Column(name = "artifact_uuid") private String artifactUUId; @Column(name = "artifact_type") private String artifactType; @Column(name = "artifact_version", nullable = false) private String artifactVersion; @Lob @Column(name = "artifact_description") private String artifactDescription; @Column(name = "internal_version") private Integer internalVersion; @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 createdDate = new Date(); @Column(name = "artifact_name", nullable = false) private String artifactName; @Column(name = "published", nullable = false) private String published; @Column(name = "updated_by", nullable = false) private String updatedBy; @Lob @Column(name = "tags", nullable = false) private String tags; public String getId() { return id; } public void setId(String id) { this.id = id; } public String getArtifactUUId() { return artifactUUId; } public void setArtifactUUId(String artifactUUId) { this.artifactUUId = artifactUUId; } public String getArtifactType() { return artifactType; } public void setArtifactType(String artifactType) { this.artifactType = artifactType; } public String getArtifactVersion() { return artifactVersion; } public void setArtifactVersion(String artifactVersion) { this.artifactVersion = artifactVersion; } public String getArtifactDescription() { return artifactDescription; } public void setArtifactDescription(String artifactDescription) { this.artifactDescription = artifactDescription; } public Integer getInternalVersion() { return internalVersion; } public void setInternalVersion(Integer internalVersion) { this.internalVersion = internalVersion; } public Date getCreatedDate() { return createdDate; } public void setCreatedDate(Date createdDate) { this.createdDate = createdDate; } public String getArtifactName() { return artifactName; } public void setArtifactName(String artifactName) { this.artifactName = artifactName; } public String getPublished() { return published; } public void setPublished(String published) { this.published = published; } public String getUpdatedBy() { return updatedBy; } public void setUpdatedBy(String updatedBy) { this.updatedBy = updatedBy; } public String getTags() { return tags; } public void setTags(String tags) { this.tags = tags; } public static long getSerialversionuid() { return serialVersionUID; } }