comparison src/main/java/de/intevation/lada/model/land/AuditTrailMessung.java @ 1300:03670cc25357

Added hibernate model for audit trail.
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 24 Feb 2017 14:28:42 +0100
parents
children
comparison
equal deleted inserted replaced
1299:0eece233cbae 1300:03670cc25357
1 package de.intevation.lada.model.land;
2
3 import java.io.Serializable;
4 import java.sql.Timestamp;
5
6 import javax.persistence.Column;
7 import javax.persistence.Entity;
8 import javax.persistence.Id;
9 import javax.persistence.Table;
10
11 import org.hibernate.annotations.Type;
12 import org.hibernate.annotations.TypeDef;
13 import org.hibernate.annotations.TypeDefs;
14
15 import com.fasterxml.jackson.databind.JsonNode;
16
17 import de.intevation.lada.util.data.JsonObjectType;
18
19
20 /**
21 * The persistent class for the audit_trail_messung database table.
22 *
23 */
24 @Entity
25 @Table(name="audit_trail_messung")
26 @TypeDefs({ @TypeDef(name = "JsonObject", typeClass = JsonObjectType.class) })
27 public class AuditTrailMessung implements Serializable {
28 private static final long serialVersionUID = 1L;
29
30 @Id
31 private Long id;
32
33 private String action;
34
35 @Column(name="tstamp")
36 private Timestamp tstamp;
37
38 @Column(name="changed_fields")
39 @Type(type="JsonObject")
40 private JsonNode changedFields;
41
42 @Column(name="messungs_id")
43 private String messungsId;
44
45 @Column(name="object_id")
46 private Integer objectId;
47
48 @Column(name="row_data")
49 @Type(type="JsonObject")
50 private JsonNode rowData;
51
52 @Column(name="table_name")
53 private String tableName;
54
55 public AuditTrailMessung() {
56 }
57
58 public String getAction() {
59 return this.action;
60 }
61
62 public void setAction(String action) {
63 this.action = action;
64 }
65
66 public Timestamp getTstamp() {
67 return this.tstamp;
68 }
69
70 public void setTstamp(Timestamp tstamp) {
71 this.tstamp = tstamp;
72 }
73
74 public JsonNode getChangedFields() {
75 return this.changedFields;
76 }
77
78 public void setChangedFields(JsonNode changedFields) {
79 this.changedFields = changedFields;
80 }
81
82 public Long getId() {
83 return this.id;
84 }
85
86 public void setId(Long id) {
87 this.id = id;
88 }
89
90 public String getMessungsId() {
91 return this.messungsId;
92 }
93
94 public void setMessungsId(String messungsId) {
95 this.messungsId = messungsId;
96 }
97
98 public Integer getObjectId() {
99 return this.objectId;
100 }
101
102 public void setObjectId(Integer objectId) {
103 this.objectId = objectId;
104 }
105
106 public JsonNode getRowData() {
107 return this.rowData;
108 }
109
110 public void setRowData(JsonNode rowData) {
111 this.rowData = rowData;
112 }
113
114 public String getTableName() {
115 return this.tableName;
116 }
117
118 public void setTableName(String tableName) {
119 this.tableName = tableName;
120 }
121
122 }
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)