2 * Copyright (C) 2021 CTC, Inc. and others. All rights reserved.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain 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 implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
16 package org.onap.usecaseui.server.bean.intent;
18 import java.io.Serializable;
19 import javax.persistence.Column;
20 import javax.persistence.Entity;
21 import javax.persistence.GeneratedValue;
22 import javax.persistence.GenerationType;
23 import javax.persistence.Id;
24 import javax.persistence.Table;
27 @Table(name="intent_model")
28 public class IntentModel implements Serializable {
31 @GeneratedValue(strategy=GenerationType.IDENTITY)
35 @Column(name = "model_name")
36 private String modelName;
38 @Column(name = "file_path")
39 private String filePath;
41 @Column(name = "create_time")
42 private String createTime;
44 @Column(name = "size")
47 @Column(name = "active")
48 private Integer active;
50 @Column(name = "model_type")
51 private Integer modelType;
53 public IntentModel() {
61 public void setId(int id) {
65 public String getModelName() {
69 public void setModelName(String modelName) {
70 this.modelName = modelName;
73 public String getFilePath() {
77 public void setFilePath(String filePath) {
78 this.filePath = filePath;
81 public String getCreateTime() {
85 public void setCreateTime(String createTime) {
86 this.createTime = createTime;
89 public Float getSize() {
93 public void setSize(Float size) {
97 public Integer getActive() {
101 public void setActive(Integer active) {
102 this.active = active;
105 public String getModelType() {
106 if (this.modelType == 1) {
114 public void setModelType(String modelType) {
115 if ("ccvpn".equals(modelType)) {