nexus site path corrected
[portal.git] / ecomp-portal-BE / src / main / java / org / openecomp / portalapp / portal / ecomp / model / SearchResultItem.java
1 /*-
2  * ================================================================================
3  * eCOMP Portal
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ================================================================================
19  */
20 package org.openecomp.portalapp.portal.ecomp.model;
21
22 import javax.persistence.Entity;
23 import javax.persistence.Id;
24
25 import org.openecomp.portalsdk.core.domain.support.DomainVo;
26
27 import com.fasterxml.jackson.annotation.JsonInclude;
28 import com.fasterxml.jackson.annotation.JsonProperty;
29
30 @Entity
31 @JsonInclude(JsonInclude.Include.NON_NULL)
32 public class SearchResultItem extends DomainVo{
33
34         /**
35          * 
36          */
37         private static final long serialVersionUID = 1598343426058929653L;
38
39         @Id
40         private String rowId;   
41         
42         @JsonProperty("category")
43         private String category;
44         
45         @JsonProperty("name")
46         private String name;
47         
48         @JsonProperty("target")
49         private String target;
50
51         @JsonProperty("uuid")
52         private String uuid;
53         
54         public String getUuid() {
55                 return uuid;
56         }
57         public void setUuid(String uuid) {
58                 this.uuid = uuid;
59         }
60         public String getRowId() {
61                 return rowId;
62         }
63         public void setRowId(String rowId) {
64                 this.rowId = rowId;
65         }
66         public String getCategory() {
67                 return category;
68         }
69         public void setCategory(String category) {
70                 this.category = category;
71         }
72         public String getName() {
73                 return name;
74         }
75         public void setName(String name) {
76                 this.name = name;
77         }
78         
79         public String getTarget() {
80                 return target;
81         }
82         public void setTarget(String target) {
83                 this.target = target;
84         }
85         @Override
86         public String toString() {
87                 return "SearchResultItem [rowId=" + rowId + ", category=" + category + ", name=" + name + ", target=" + target
88                                 + ", uuid=" + uuid + "]";
89         }
90         
91         
92 }