Add template and tosca model entities and repositories
[clamp.git] / src / main / java / org / onap / clamp / loop / template / TemplateMicroServiceModelId.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
28 import java.io.Serializable;
29
30 import javax.persistence.Column;
31 import javax.persistence.Embeddable;
32
33 @Embeddable
34 public class TemplateMicroServiceModelId implements Serializable {
35
36     /**
37      * Serial ID.
38      */
39     private static final long serialVersionUID = 4089888115504914773L;
40
41     @Expose
42     @Column(name = "loop_template_name")
43     private String loopTemplateName;
44
45     @Expose
46     @Column(name = "micro_service_model_name")
47     private String microServiceModelName;
48
49     /**
50      * Default constructor for serialization.
51      */
52     public TemplateMicroServiceModelId() {
53
54     }
55
56     /**
57      * Constructor.
58      * 
59      * @param loopTemplateName      The loop template name id
60      * @param microServiceModelName THe micro Service name id
61      */
62     public TemplateMicroServiceModelId(String loopTemplateName, String microServiceModelName) {
63         this.loopTemplateName = loopTemplateName;
64         this.microServiceModelName = microServiceModelName;
65     }
66
67     /**
68      * loopTemplateName getter.
69      * 
70      * @return the loopTemplateName
71      */
72     public String getLoopTemplateName() {
73         return loopTemplateName;
74     }
75
76     /**
77      * loopTemplateName setter.
78      * 
79      * @param loopTemplateName the loopTemplateName to set
80      */
81     public void setLoopTemplateName(String loopTemplateName) {
82         this.loopTemplateName = loopTemplateName;
83     }
84
85     /**
86      * microServiceModelName getter.
87      * 
88      * @return the microServiceModelName
89      */
90     public String getMicroServiceModelName() {
91         return microServiceModelName;
92     }
93
94     /**
95      * microServiceModelName setter.
96      * 
97      * @param microServiceModelName the microServiceModelName to set
98      */
99     public void setMicroServiceModelName(String microServiceModelName) {
100         this.microServiceModelName = microServiceModelName;
101     }
102 }