/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package ec.gob.mcds.seguridades.model;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
/**
*
* @author christian
*/
@Entity
@Table(name = "sch_seguridades.auditoria_general")
@NamedQueries({
@NamedQuery(name = "AuditoriaGeneral.findAll", query = "SELECT a FROM AuditoriaGeneral a")})
public class AuditoriaGeneral implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Basic(optional = false)
@Column(name = "agu_codigo", nullable = false)
private Integer aguCodigo;
@Basic(optional = false)
@NotNull
@Column(name = "agu_usuario", nullable = false)
private int aguUsuario;
@Basic(optional = false)
@NotNull
@Column(name = "agu_fecharegistro", nullable = false)
@Temporal(TemporalType.DATE)
private Date aguFecharegistro;
@Size(max = 5000)
@Column(name = "agu_comandoejecutado", length = 5000)
private String aguComandoejecutado;
@Basic(optional = false)
@NotNull
@Size(min = 1, max = 100)
@Column(name = "agu_identificadorequipo", nullable = false, length = 100)
private String aguIdentificadorequipo;
@Basic(optional = false)
@NotNull
@Column(name = "agu_modulo", nullable = false)
private int aguModulo;
@Basic(optional = false)
@NotNull
@Size(min = 1, max = 100)
@Column(name = "agu_accion", nullable = false, length = 100)
private String aguAccion;
public AuditoriaGeneral() {
}
public AuditoriaGeneral(Integer aguCodigo) {
this.aguCodigo = aguCodigo;
}
public AuditoriaGeneral(Integer aguCodigo, int aguUsuario, Date aguFecharegistro, String aguIdentificadorequipo, int aguModulo, String aguAccion) {
this.aguCodigo = aguCodigo;
this.aguUsuario = aguUsuario;
this.aguFecharegistro = aguFecharegistro;
this.aguIdentificadorequipo = aguIdentificadorequipo;
this.aguModulo = aguModulo;
this.aguAccion = aguAccion;
}
public Integer getAguCodigo() {
return aguCodigo;
}
public void setAguCodigo(Integer aguCodigo) {
this.aguCodigo = aguCodigo;
}
public int getAguUsuario() {
return aguUsuario;
}
public void setAguUsuario(int aguUsuario) {
this.aguUsuario = aguUsuario;
}
public Date getAguFecharegistro() {
return aguFecharegistro;
}
public void setAguFecharegistro(Date aguFecharegistro) {
this.aguFecharegistro = aguFecharegistro;
}
public String getAguComandoejecutado() {
return aguComandoejecutado;
}
public void setAguComandoejecutado(String aguComandoejecutado) {
this.aguComandoejecutado = aguComandoejecutado;
}
public String getAguIdentificadorequipo() {
return aguIdentificadorequipo;
}
public void setAguIdentificadorequipo(String aguIdentificadorequipo) {
this.aguIdentificadorequipo = aguIdentificadorequipo;
}
public int getAguModulo() {
return aguModulo;
}
public void setAguModulo(int aguModulo) {
this.aguModulo = aguModulo;
}
public String getAguAccion() {
return aguAccion;
}
public void setAguAccion(String aguAccion) {
this.aguAccion = aguAccion;
}
@Override
public int hashCode() {
int hash = 0;
hash += (aguCodigo != null ? aguCodigo.hashCode() : 0);
return hash;
}
@Override
public boolean equals(Object object) {
// TODO: Warning - this method won't work in the case the id fields are not set
if (!(object instanceof AuditoriaGeneral)) {
return false;
}
AuditoriaGeneral other = (AuditoriaGeneral) object;
if ((this.aguCodigo == null && other.aguCodigo != null) || (this.aguCodigo != null && !this.aguCodigo.equals(other.aguCodigo))) {
return false;
}
return true;
}
@Override
public String toString() {
return "model.AuditoriaGeneral[ aguCodigo=" + aguCodigo + " ]";
}
}