2 * Copyright © 2017-2018 AT&T Intellectual Property.
3 * Modifications Copyright © 2019 Bell Canada.
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
18 package org.onap.ccsdk.cds.controllerblueprints.service.domain;
20 import com.fasterxml.jackson.annotation.JsonFormat;
21 import com.fasterxml.jackson.annotation.JsonTypeInfo;
22 import com.fasterxml.jackson.annotation.JsonTypeName;
23 import org.springframework.data.annotation.LastModifiedDate;
25 import javax.persistence.*;
26 import java.io.Serializable;
27 import java.util.Date;
30 @Table(name = "CONFIG_MODEL")
31 @JsonTypeName("blueprintModel")
32 @JsonTypeInfo(include= JsonTypeInfo.As.WRAPPER_OBJECT, use=JsonTypeInfo.Id.NAME)
33 public class BlueprintModelSearch implements Serializable {
34 private static final long serialVersionUID = 1L;
37 @Column(name = "config_model_id")
40 @Column(name = "artifact_uuid")
41 private String artifactUUId;
43 @Column(name = "artifact_type")
44 private String artifactType;
46 @Column(name = "artifact_version", nullable = false)
47 private String artifactVersion;
50 @Column(name = "artifact_description")
51 private String artifactDescription;
53 @Column(name = "internal_version")
54 private Integer internalVersion;
56 @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")
58 @Temporal(TemporalType.TIMESTAMP)
59 @Column(name = "creation_date")
60 private Date createdDate = new Date();
62 @Column(name = "artifact_name", nullable = false)
63 private String artifactName;
65 @Column(name = "published", nullable = false)
66 private String published;
68 @Column(name = "updated_by", nullable = false)
69 private String updatedBy;
72 @Column(name = "tags", nullable = false)
75 public String getId() {
79 public void setId(String id) {
83 public String getArtifactUUId() {
87 public void setArtifactUUId(String artifactUUId) {
88 this.artifactUUId = artifactUUId;
91 public String getArtifactType() {
95 public void setArtifactType(String artifactType) {
96 this.artifactType = artifactType;
99 public String getArtifactVersion() {
100 return artifactVersion;
103 public void setArtifactVersion(String artifactVersion) {
104 this.artifactVersion = artifactVersion;
107 public String getArtifactDescription() {
108 return artifactDescription;
111 public void setArtifactDescription(String artifactDescription) {
112 this.artifactDescription = artifactDescription;
115 public Integer getInternalVersion() {
116 return internalVersion;
119 public void setInternalVersion(Integer internalVersion) {
120 this.internalVersion = internalVersion;
123 public Date getCreatedDate() {
127 public void setCreatedDate(Date createdDate) {
128 this.createdDate = createdDate;
131 public String getArtifactName() {
135 public void setArtifactName(String artifactName) {
136 this.artifactName = artifactName;
139 public String getPublished() {
143 public void setPublished(String published) {
144 this.published = published;
147 public String getUpdatedBy() {
151 public void setUpdatedBy(String updatedBy) {
152 this.updatedBy = updatedBy;
155 public String getTags() {
159 public void setTags(String tags) {
163 public static long getSerialversionuid() {
164 return serialVersionUID;