2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
23 * THIS FILE CONTAINS PROPRIETARY INFORMATION OF
24 * AT&T AND IS NOT TO BE DISCLOSED OR USED EXCEPT IN
25 * ACCORDANCE WITH APPLICABLE AGREEMENTS.
27 * Copyright (c) 2013 AT&T Knowledge Ventures
28 * Unpublished and Not for Publication
31 package org.onap.policy.rest.jpa;
33 import java.io.Serializable;
34 import java.util.Date;
36 import javax.persistence.Column;
37 import javax.persistence.Entity;
38 import javax.persistence.GeneratedValue;
39 import javax.persistence.GenerationType;
40 import javax.persistence.Id;
41 import javax.persistence.NamedQuery;
42 import javax.persistence.Table;
43 import javax.persistence.Temporal;
44 import javax.persistence.TemporalType;
47 * The persistent class for the system log database table.
51 @Table(name="SystemLogDB")
52 @NamedQuery(name="SystemLogDB.findAll", query="SELECT o FROM SystemLogDB o")
53 public class SystemLogDB implements Serializable {
54 private static final long serialVersionUID = 1L;
58 @GeneratedValue(strategy = GenerationType.AUTO)
62 @Column(name="type", nullable=false)
65 @Column(name="system", nullable=false, length=255)
66 private String system;
68 @Column(name="description", nullable=true, length=2048)
69 private String description;
71 @Column(name="remote", nullable=false, length=255)
72 private String remote;
74 @Column(name="logtype", nullable=false, length=255)
75 private String logtype;
77 @Temporal(TemporalType.TIMESTAMP)
78 @Column(name="date", nullable=false, updatable=false)
81 public SystemLogDB() {
85 public SystemLogDB(int id, String system, String description, String remote,
86 String type, String logtype) {
89 this.description = description;
92 this.logtype = logtype;
95 public void SystemLogB (int id, String system, String description, String remote, String type, Date date, String logtype){
98 this.description = description;
102 this.logtype = logtype;
110 public void setId(int id) {
114 public Date getDate(){
118 public void setDate(Date date){
122 public String getDescription() {
123 return this.description;
126 public void setDescription(String description) {
127 this.description = description;
130 public String getType() {
134 public void setType(String type) {
139 public String getSystem() {
143 public void setSystem(String system) {
144 this.system = system;
147 public String getRemote() {
151 public void setRemote(String remote) {
152 this.remote = remote;
155 public String getLogtype() {
159 public void setLogtype(String logtype) {
160 this.logtype = logtype;