Revision 12
| trunk/src/java/org/lidar/db/Log.java | ||
|---|---|---|
| 9 | 9 |
* @author Andrej Cimpersek |
| 10 | 10 |
*/ |
| 11 | 11 |
@Entity |
| 12 |
@Table(name="log")
|
|
| 12 |
@Table(name = "log")
|
|
| 13 | 13 |
public class Log implements Serializable {
|
| 14 |
|
|
| 14 | 15 |
private Integer id; |
| 15 | 16 |
private Date date; |
| 16 | 17 |
private String type; |
| 17 | 18 |
private String message; |
| 18 | 19 |
|
| 19 |
public Log(){
|
|
| 20 |
public Log() {
|
|
| 20 | 21 |
} |
| 21 | 22 |
|
| 22 |
public Log(Integer id, Date date, String type, String message){
|
|
| 23 |
public Log(Integer id, Date date, String type, String message) {
|
|
| 23 | 24 |
this.id = id; |
| 24 | 25 |
this.date = date; |
| 25 | 26 |
this.type = type; |
| ... | ... | |
| 36 | 37 |
} |
| 37 | 38 |
|
| 38 | 39 |
@Temporal(javax.persistence.TemporalType.DATE) |
| 39 |
@Column(name="access")
|
|
| 40 |
@Column(name = "access")
|
|
| 40 | 41 |
public Date getDate() {
|
| 41 | 42 |
return this.date; |
| 42 | 43 |
} |
Also available in: Unified diff