2 * Copyright (c) 2019 AT&T Intellectual Property. All rights reserved.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
16 package org.akraino.validation.ui.entity;
18 import java.io.Serializable;
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.OneToOne;
28 import javax.persistence.SequenceGenerator;
29 import javax.persistence.Table;
31 import org.akraino.validation.ui.data.BlueprintLayer;
34 @Table(name = "akraino.blueprint_instance")
35 public class BlueprintInstance implements Serializable {
40 private static final long serialVersionUID = 1L;
43 @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "blueprint_instance_id_generator")
44 @SequenceGenerator(name = "blueprint_instance_id_generator", sequenceName = "akraino.seq_blueprint_instance",
46 @Column(name = "blueprint_instance_id")
47 private int blueprintInstId;
50 @JoinColumn(name = "blueprint_id")
51 private Blueprint blueprint;
53 @Column(name = "version")
54 private String version;
56 @Column(name = "layer")
57 private BlueprintLayer layer;
59 @Column(name = "layer_description")
60 private String layerDescription;
63 @JoinColumn(name = "timeslot_id")
64 private Timeslot timeslot;
66 public int getBlueprintInstanceId() {
67 return blueprintInstId;
70 public void setBlueprintInstanceId(int blueprintInstId) {
71 this.blueprintInstId = blueprintInstId;
74 public Blueprint getBlueprint() {
78 public void setBlueprint(Blueprint blueprint) {
79 this.blueprint = blueprint;
82 public void setVersion(String version) {
83 this.version = version;
86 public String getVersion() {
90 public BlueprintLayer getLayer() {
94 public void setLayer(BlueprintLayer layer) {
98 public void setLayerDescription(String layerDescription) {
99 this.layerDescription = layerDescription;
102 public String getLayerDescription() {
103 return layerDescription;
106 public void setTimeslot(Timeslot timeslot) {
107 this.timeslot = timeslot;
110 public Timeslot getTimeslot() {
111 return this.timeslot;