/**
* Balero CMS Project: Proyecto 100% Mexicano de código libre.
* Página Oficial: http://www.balerocms.com
*
* @author Anibal Gomez <anibalgomez@icloud.com>
* @copyright Copyright (C) 2015 Neblina Software. Derechos reservados.
* @license Licencia BSD; vea LICENSE.txt
*/
package com.neblina.balero.domain;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
@Entity
public class Blacklist {
@Id
@GeneratedValue
private Long id;
private String ip;
private int timer = 0;
private int attemps = 0;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getIp() {
return ip;
}
public void setIp(String ip) {
this.ip = ip;
}
public int getTimer() {
return timer;
}
public void setTimer(int timer) {
this.timer = timer;
}
public int getAttemps() {
return attemps;
}
public void setAttemps(int attemps) {
this.attemps = attemps;
}
@Override
public String toString() {
return "Blacklist [" +
"ip=" + this.ip + "," +
"timer=" + this.timer + "," +
"attemps=" + this.attemps
+ "]";
}
}