Mercurial > lada > lada-server
comparison src/main/java/de/intevation/lada/model/stammdaten/Result.java @ 1028:1c41c7b8f7c2 schema-update
Updated server application to new database model. THIS IS STILL WIP!!!
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Fri, 08 Jul 2016 15:32:36 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1027:9971471d562c | 1028:1c41c7b8f7c2 |
---|---|
1 package de.intevation.lada.model.stammdaten; | |
2 | |
3 import java.io.Serializable; | |
4 | |
5 import javax.persistence.Column; | |
6 import javax.persistence.Entity; | |
7 import javax.persistence.Id; | |
8 import javax.persistence.ManyToOne; | |
9 | |
10 import com.fasterxml.jackson.annotation.JsonIgnore; | |
11 | |
12 | |
13 /** | |
14 * The persistent class for the result database table. | |
15 * | |
16 */ | |
17 @Entity | |
18 public class Result implements Serializable { | |
19 private static final long serialVersionUID = 1L; | |
20 | |
21 @Id | |
22 private Integer id; | |
23 | |
24 @Column(name="data_index") | |
25 private String dataIndex; | |
26 | |
27 private Boolean flex; | |
28 | |
29 private String header; | |
30 | |
31 private Integer index; | |
32 | |
33 //bi-directional many-to-one association to Query | |
34 @ManyToOne | |
35 private Query query; | |
36 | |
37 private Integer width; | |
38 | |
39 public Result() { | |
40 } | |
41 | |
42 public Integer getId() { | |
43 return this.id; | |
44 } | |
45 | |
46 public void setId(Integer id) { | |
47 this.id = id; | |
48 } | |
49 | |
50 public String getDataIndex() { | |
51 return this.dataIndex; | |
52 } | |
53 | |
54 public void setDataIndex(String dataIndex) { | |
55 this.dataIndex = dataIndex; | |
56 } | |
57 | |
58 public Boolean getFlex() { | |
59 return this.flex; | |
60 } | |
61 | |
62 public void setFlex(Boolean flex) { | |
63 this.flex = flex; | |
64 } | |
65 | |
66 public String getHeader() { | |
67 return this.header; | |
68 } | |
69 | |
70 public void setHeader(String header) { | |
71 this.header = header; | |
72 } | |
73 | |
74 public Integer getIndex() { | |
75 return this.index; | |
76 } | |
77 | |
78 public void setIndex(Integer index) { | |
79 this.index = index; | |
80 } | |
81 | |
82 @JsonIgnore | |
83 public Query getQuery() { | |
84 return this.query; | |
85 } | |
86 | |
87 @JsonIgnore | |
88 public void setQuery(Query query) { | |
89 this.query = query; | |
90 } | |
91 | |
92 public Integer getWidth() { | |
93 return this.width; | |
94 } | |
95 | |
96 public void setWidth(Integer width) { | |
97 this.width = width; | |
98 } | |
99 | |
100 } |