Merge "[docker] Add sonobuoy multiarch image build"
[validation.git] / ui / src / main / java / org / akraino / validation / ui / entity / BlueprintInstanceForValidation.java
1 /*
2  * Copyright (c) 2019 AT&T Intellectual Property. All rights reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License"); you may
5  * not use this file except in compliance with the License. You may obtain
6  * a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
13  * implied. See the License for the specific language governing
14  * permissions and limitations under the License.
15  */
16 package org.akraino.validation.ui.entity;
17
18 import java.io.Serializable;
19
20 import javax.persistence.Column;
21 import javax.persistence.Entity;
22 import javax.persistence.GeneratedValue;
23 import javax.persistence.GenerationType;
24 import javax.persistence.Id;
25 import javax.persistence.JoinColumn;
26 import javax.persistence.ManyToOne;
27 import javax.persistence.Table;
28
29 import org.akraino.validation.ui.data.BlueprintLayer;
30
31 @Entity
32 @Table(name = "blueprint_instance_for_validation")
33 public class BlueprintInstanceForValidation implements Serializable {
34
35     /**
36      *
37      */
38     private static final long serialVersionUID = 1L;
39
40     @Id
41     @GeneratedValue(strategy = GenerationType.IDENTITY)
42     @Column(name = "id")
43     private int blueprintInstId;
44
45     @ManyToOne
46     @JoinColumn(name = "blueprint_id")
47     private Blueprint blueprint;
48
49     @Column(name = "version")
50     private String version;
51
52     @Column(name = "layer")
53     private BlueprintLayer layer;
54
55     @Column(name = "layer_description")
56     private String layerDescription;
57
58     public int getBlueprintInstanceId() {
59         return blueprintInstId;
60     }
61
62     public void setBlueprintInstanceId(int blueprintInstId) {
63         this.blueprintInstId = blueprintInstId;
64     }
65
66     public Blueprint getBlueprint() {
67         return blueprint;
68     }
69
70     public void setBlueprint(Blueprint blueprint) {
71         this.blueprint = blueprint;
72     }
73
74     public void setVersion(String version) {
75         this.version = version;
76     }
77
78     public String getVersion() {
79         return version;
80     }
81
82     public BlueprintLayer getLayer() {
83         return layer;
84     }
85
86     public void setLayer(BlueprintLayer layer) {
87         this.layer = layer;
88     }
89
90     public void setLayerDescription(String layerDescription) {
91         this.layerDescription = layerDescription;
92     }
93
94     public String getLayerDescription() {
95         return layerDescription;
96     }
97 }