/* * Copyright 2010 NCHOVY * * 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. */ package org.krakenapps.sonar.metabase.model; import java.util.Date; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Table; import javax.persistence.Id; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; @Entity @Table(name = "sonar_ids_log") public class AttackLog { @Id @GeneratedValue(strategy = GenerationType.AUTO) private int id; private Date date; @Column(name = "src_ip") private String sourceIp; @Column(name = "src_port") private Integer sourcePort; @Column(name = "dst_ip") private String destinationIp; @Column(name = "dst_port") private Integer destinationPort; private String protocol; private String rule; @Column(name = "msg") private String message; public int getId() { return id; } public void setId(int id) { this.id = id; } public Date getDate() { return date; } public void setDate(Date date) { this.date = date; } public String getSourceIp() { return sourceIp; } public void setSourceIp(String sourceIp) { this.sourceIp = sourceIp; } public Integer getSourcePort() { return sourcePort; } public void setSourcePort(Integer sourcePort) { this.sourcePort = sourcePort; } public String getDestinationIp() { return destinationIp; } public void setDestinationIp(String destinationIp) { this.destinationIp = destinationIp; } public Integer getDestinationPort() { return destinationPort; } public void setDestinationPort(Integer destinationPort) { this.destinationPort = destinationPort; } public String getProtocol() { return protocol; } public void setProtocol(String protocol) { this.protocol = protocol; } public String getRule() { return rule; } public void setRule(String rule) { this.rule = rule; } public String getMessage() { return message; } public void setMessage(String message) { this.message = message; } }