View Javadoc

1   package ecar.pojo;
2   
3   // Generated Aug 13, 2009 2:24:15 PM by Hibernate Tools 3.2.0.CR1
4   
5   import java.util.Date;
6   import javax.persistence.Column;
7   import javax.persistence.Entity;
8   import javax.persistence.FetchType;
9   import javax.persistence.GeneratedValue;
10  import javax.persistence.Id;
11  import javax.persistence.JoinColumn;
12  import javax.persistence.ManyToOne;
13  import javax.persistence.Table;
14  import javax.persistence.Temporal;
15  import javax.persistence.TemporalType;
16  import org.hibernate.annotations.GenericGenerator;
17  
18  /**
19   * Log generated by hbm2java
20   */
21  @Entity
22  @Table(name = "TB_LOG")
23  public class Log implements java.io.Serializable {
24  
25    private Long codLog;
26    private Date dataLog;
27    private String stringSqlLog;
28    private String nomeTabelaLog;
29    private String operacaoLog;
30    private String ipLog;
31    private Long codSessaoLog;
32    private Long codGrupoLog;
33    private UsuarioUsu usuarioUsu;
34  
35    public Log() {
36    }
37  
38    public Log(Date dataLog, String stringSqlLog, String nomeTabelaLog, String operacaoLog, String ipLog, Long codSessaoLog, Long codGrupoLog, UsuarioUsu usuarioUsu) {
39      this.dataLog = dataLog;
40      this.stringSqlLog = stringSqlLog;
41      this.nomeTabelaLog = nomeTabelaLog;
42      this.operacaoLog = operacaoLog;
43      this.ipLog = ipLog;
44      this.codSessaoLog = codSessaoLog;
45      this.codGrupoLog = codGrupoLog;
46      this.usuarioUsu = usuarioUsu;
47    }
48  
49    @GenericGenerator(name = "generator", strategy = "increment")
50    @Id
51    @GeneratedValue(generator = "generator")
52    @Column(name = "COD_LOG", nullable = false)
53    public Long getCodLog() {
54      return this.codLog;
55    }
56  
57    public void setCodLog(Long codLog) {
58      this.codLog = codLog;
59    }
60  
61    @Temporal(TemporalType.TIMESTAMP)
62    @Column(name = "DATA_LOG", length = 7)
63    public Date getDataLog() {
64      return this.dataLog;
65    }
66  
67    public void setDataLog(Date dataLog) {
68      this.dataLog = dataLog;
69    }
70  
71    @Column(name = "STRING_SQL_LOG", length = 200)
72    public String getStringSqlLog() {
73      return this.stringSqlLog;
74    }
75  
76    public void setStringSqlLog(String stringSqlLog) {
77      this.stringSqlLog = stringSqlLog;
78    }
79  
80    @Column(name = "NOME_TABELA_LOG", length = 20)
81    public String getNomeTabelaLog() {
82      return this.nomeTabelaLog;
83    }
84  
85    public void setNomeTabelaLog(String nomeTabelaLog) {
86      this.nomeTabelaLog = nomeTabelaLog;
87    }
88  
89    @Column(name = "OPERACAO_LOG", length = 3)
90    public String getOperacaoLog() {
91      return this.operacaoLog;
92    }
93  
94    public void setOperacaoLog(String operacaoLog) {
95      this.operacaoLog = operacaoLog;
96    }
97  
98    @Column(name = "IP_LOG", length = 20)
99    public String getIpLog() {
100     return this.ipLog;
101   }
102 
103   public void setIpLog(String ipLog) {
104     this.ipLog = ipLog;
105   }
106 
107   @Column(name = "COD_SESSAO_LOG", length = 10)
108   public Long getCodSessaoLog() {
109     return this.codSessaoLog;
110   }
111 
112   public void setCodSessaoLog(Long codSessaoLog) {
113     this.codSessaoLog = codSessaoLog;
114   }
115 
116   @Column(name = "COD_GRUPO_LOG", length = 10)
117   public Long getCodGrupoLog() {
118     return this.codGrupoLog;
119   }
120 
121   public void setCodGrupoLog(Long codGrupoLog) {
122     this.codGrupoLog = codGrupoLog;
123   }
124 
125   @ManyToOne(fetch = FetchType.LAZY)
126   @JoinColumn(name = "COD_USU")
127   public UsuarioUsu getUsuarioUsu() {
128     return this.usuarioUsu;
129   }
130 
131   public void setUsuarioUsu(UsuarioUsu usuarioUsu) {
132     this.usuarioUsu = usuarioUsu;
133   }
134 
135 }