comparison src/main/java/de/intevation/lada/model/land/AuditTrailProbe.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 db46646375e3
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.json.JsonObject;
7 import javax.persistence.Column;
8 import javax.persistence.Entity;
9 import javax.persistence.Id;
10 import javax.persistence.Table;
11
12 import org.hibernate.annotations.Type;
13 import org.hibernate.annotations.TypeDef;
14 import org.hibernate.annotations.TypeDefs;
15
16 import com.fasterxml.jackson.databind.JsonNode;
17
18 import de.intevation.lada.util.data.JsonObjectType;
19
20 /**
21 * The persistent class for the audit_trail_probe database table.
22 *
23 */
24 @Entity
25 @Table(name="audit_trail_probe")
26 @TypeDefs({ @TypeDef(name = "JsonObject", typeClass = JsonObjectType.class) })
27 public class AuditTrailProbe implements Serializable {
28 private static final long serialVersionUID = 1L;
29
30 @Id
31 private Long id;
32
33 @Column(name="changed_fields")
34 @Type(type="JsonObject")
35 private JsonNode changedFields;
36
37 @Column(name="row_data")
38 @Type(type="JsonObject")
39 private JsonNode rowData;
40
41 @Column(name="tstamp")
42 private Timestamp tstamp;
43
44 @Column(name="messungs_id")
45 private Integer messungsId;
46
47 @Column(name="object_id")
48 private Integer objectId;
49
50 @Column(name="probe_id")
51 private Integer probeId;
52
53 @Column(name="table_name")
54 private String tableName;
55
56 public AuditTrailProbe() {
57 }
58
59 public JsonNode getChangedFields() {
60 return this.changedFields;
61 }
62
63 public void setChangedFields(JsonNode changedFields) {
64 this.changedFields = changedFields;
65 }
66
67 public JsonNode getRowData() {
68 return rowData;
69 }
70
71 public void setRowData(JsonNode rowData) {
72 this.rowData = rowData;
73 }
74
75 public Timestamp getTstamp() {
76 return tstamp;
77 }
78
79 public void setTstamp(Timestamp tstamp) {
80 this.tstamp = tstamp;
81 }
82
83 public Integer getMessungsId() {
84 return this.messungsId;
85 }
86
87 public void setMessungsId(Integer messungsId) {
88 this.messungsId = messungsId;
89 }
90
91 public Integer getObjectId() {
92 return this.objectId;
93 }
94
95 public void setObjectId(Integer objectId) {
96 this.objectId = objectId;
97 }
98
99 public Integer getProbeId() {
100 return this.probeId;
101 }
102
103 public void setProbeId(Integer probeId) {
104 this.probeId = probeId;
105 }
106
107 public String getTableName() {
108 return this.tableName;
109 }
110
111 public void setTableName(String tableName) {
112 this.tableName = tableName;
113 }
114
115 }
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)