Changes include Metadata support, Upload tosca policy model and Loop Template
[clamp.git] / src / main / java / org / onap / clamp / loop / template / LoopTemplateLoopElementModelId.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP CLAMP
4  * ================================================================================
5  * Copyright (C) 2019 AT&T Intellectual Property. All rights
6  *                             reserved.
7  * ================================================================================
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  * ============LICENSE_END============================================
20  * ===================================================================
21  *
22  */
23
24 package org.onap.clamp.loop.template;
25
26 import com.google.gson.annotations.Expose;
27 import java.io.Serializable;
28 import javax.persistence.Column;
29 import javax.persistence.Embeddable;
30
31 @Embeddable
32 public class LoopTemplateLoopElementModelId implements Serializable {
33
34     /**
35      * Serial ID.
36      */
37     private static final long serialVersionUID = 4089888115504914773L;
38
39     @Expose
40     @Column(name = "loop_template_name")
41     private String loopTemplateName;
42
43     @Expose
44     @Column(name = "loop_element_model_name")
45     private String loopElementModelName;
46
47     /**
48      * Default constructor for serialization.
49      */
50     public LoopTemplateLoopElementModelId() {
51
52     }
53
54     /**
55      * Constructor.
56      *
57      * @param loopTemplateName The loop template name id
58      * @param microServiceModelName THe micro Service name id
59      */
60     public LoopTemplateLoopElementModelId(String loopTemplateName, String microServiceModelName) {
61         this.loopTemplateName = loopTemplateName;
62         this.loopElementModelName = microServiceModelName;
63     }
64
65     /**
66      * loopTemplateName getter.
67      *
68      * @return the loopTemplateName
69      */
70     public String getLoopTemplateName() {
71         return loopTemplateName;
72     }
73
74     /**
75      * loopTemplateName setter.
76      *
77      * @param loopTemplateName the loopTemplateName to set
78      */
79     public void setLoopTemplateName(String loopTemplateName) {
80         this.loopTemplateName = loopTemplateName;
81     }
82
83     /**
84      * microServiceModelName getter.
85      *
86      * @return the microServiceModelName
87      */
88     public String getLoopElementModelName() {
89         return loopElementModelName;
90     }
91
92     /**
93      * loopElementModelName setter.
94      *
95      * @param loopElementModelName the loopElementModelName to set
96      */
97     public void setLoopElementModelName(String loopElementModelName) {
98         this.loopElementModelName = loopElementModelName;
99     }
100 }