aboutsummaryrefslogtreecommitdiffstats
path: root/SDNCReports/sdnc_reports_dao/src/main/java/com/onap/sdnc/reports/model/ProtocolConfig.java
blob: 3ad2fbf2c77c5e1a9dcec31b17853053124e42ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
/*
* ============LICENSE_START=======================================================
* ONAP : SDNC-FEATURES
* ================================================================================
* Copyright 2018 TechMahindra
*=================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*     http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* ============LICENSE_END=========================================================
*/
package com.onap.sdnc.reports.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name = "protocolconfig",schema="testreports")
public class ProtocolConfig implements Serializable{
	
	private static final long serialVersionUID = -3009157732242241606L;
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "protocolid")
	private long protocolId;

	@Column(name = "protocolname")
	private String protocolname;
	
	@Column(name = "process_id")
	private String process_id;
	
	@Column(name = "networks")
	private String networks;
	
	@Column(name = "as_number")
	private String as_number;
	
	@Column(name = "neighbors")
	private String neighbors;
	
	@Column(name = "cos_entry_number")
	private String cos_entry_number;
	
	@Column(name = "destination_address")
	private String destination_address;
	
	@Column(name = "source_address")
	private String source_address;
	
	@Column(name = "customer_name")
	private String customer_name;
	
	@Column(name = "version")
	private String version;

	//@Column(name = "creationDate")
	//private String creationDate;
	
	@ManyToOne
	@JoinColumn(name="deviceid",nullable=false)
	private DeviceConfig device;
	
	public ProtocolConfig() {
	// TODO Auto-generated constructor stub
	}

	public long getProtocolId() {
		return protocolId;
	}

	public void setProtocolId(long protocolId) {
		this.protocolId = protocolId;
	}

	public String getProtocolName() {
		return protocolname;
	}

	public void setProtocolName(String protocolName) {
		this.protocolname = protocolName;
	}

	public String getProcess_id() {
		return process_id;
	}

	public void setProcess_id(String process_id) {
		this.process_id = process_id;
	}

	public String getNetworks() {
		return networks;
	}

	public void setNetworks(String networks) {
		this.networks = networks;
	}

	public String getAs_number() {
		return as_number;
	}

	public void setAs_number(String as_number) {
		this.as_number = as_number;
	}

	public String getNeighbors() {
		return neighbors;
	}

	public void setNeighbors(String neighbors) {
		this.neighbors = neighbors;
	}

	public String getCos_entry_number() {
		return cos_entry_number;
	}

	public void setCos_entry_number(String cos_entry_number) {
		this.cos_entry_number = cos_entry_number;
	}

	public String getDestination_address() {
		return destination_address;
	}

	public void setDestination_address(String destination_address) {
		this.destination_address = destination_address;
	}

	public String getSource_address() {
		return source_address;
	}

	public void setSource_address(String source_address) {
		this.source_address = source_address;
	}

	public String getCustomer_name() {
		return customer_name;
	}

	public void setCustomer_name(String customer_name) {
		this.customer_name = customer_name;
	}

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	/*public String getCreationDate() {
		return creationDate;
	}

	public void setCreationDate(String creationDate) {
		this.creationDate = creationDate;
	}*/

	public DeviceConfig getDevice() {
		return device;
	}

	public void setDevice(DeviceConfig device) {
		this.device = device;
	}

	/*@Override
	public String toString() {
		return "ProtocolConfig [protocolId=" + protocolId + ", protocolname=" + protocolname + ", process_id="
				+ process_id + ", networks=" + networks + ", as_number=" + as_number + ", neighbors=" + neighbors
				+ ", cos_entry_number=" + cos_entry_number + ", destination_address=" + destination_address
				+ ", source_address=" + source_address + ", customer_name=" + customer_name + ", version=" + version
				+ ", device=" + device + "]";
	}*/
	
	
}