comparison src/test/resources/probequery.json @ 832:59c51da59b30

Refactored test environment. Land tests are using arquillian persistence extension (built on DBUnit).
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 18 Dec 2015 18:01:00 +0100
parents 72c4510c3d4d
children
comparison
equal deleted inserted replaced
831:3d76d476894f 832:59c51da59b30
1 [ 1 [
2 { "id": "1", 2 { "id": "1",
3 "name": "Kein Filter", 3 "name": "Kein Filter",
4 "description": "Abfrage der Proben ohne Filter", 4 "description": "Abfrage der Proben ohne Filter",
5 "sql": "select p.id as id, pt.probe_id_alt as probeId, p.mst_id as mstId, p.umw_id as umwId from land.probe p join land.probe_translation pt on p.id = pt.probe_id", 5 "sql": "select p.id as id, pt.probe_id_alt as probeId, p.mst_id as mstId, p.umw_id as umwId from land.probe p join land.probe_translation pt on p.id = pt.probe_id",
6 "type": "probe",
6 "result": [ 7 "result": [
7 {"dataIndex": "probeId", "header": "ProbeId", "width": 100}, 8 {"dataIndex": "probeId", "header": "ProbeId", "width": 100},
8 {"dataIndex": "mstId", "header": "MST", "width": 100}, 9 {"dataIndex": "mstId", "header": "MST", "width": 100},
9 {"dataIndex": "umwId", "header": "Umweltbereich", "width": 100} 10 {"dataIndex": "umwId", "header": "Umweltbereich", "width": 100}
10 ], 11 ],
13 }, 14 },
14 { "id": "2", 15 { "id": "2",
15 "name": "MST und UMW", 16 "name": "MST und UMW",
16 "description": "Abfrage der Proben gefiltert nach Messtellen ID und ID des Umweltbereichs", 17 "description": "Abfrage der Proben gefiltert nach Messtellen ID und ID des Umweltbereichs",
17 "sql": "select p.id as id, pt.probe_id_alt as probeId, p.mst_id as mstId, p.umw_id as umwId from land.probe p join land.probe_translation pt on p.id = pt.probe_id where (p.mst_id = :mst_id OR '' = :mst_id) and (p.umw_id = :umw_id OR '' = :umw_id)", 18 "sql": "select p.id as id, pt.probe_id_alt as probeId, p.mst_id as mstId, p.umw_id as umwId from land.probe p join land.probe_translation pt on p.id = pt.probe_id where (p.mst_id = :mst_id OR '' = :mst_id) and (p.umw_id = :umw_id OR '' = :umw_id)",
19 "type": "probe",
18 "result": [ 20 "result": [
19 {"dataIndex": "probeId", "header": "ProbeId", "width": 100}, 21 {"dataIndex": "probeId", "header": "ProbeId", "width": 100},
20 {"dataIndex": "mstId", "header": "MST", "width": 100}, 22 {"dataIndex": "mstId", "header": "MST", "width": 100},
21 {"dataIndex": "umwId", "header": "Umweltbereich", "width": 100} 23 {"dataIndex": "umwId", "header": "Umweltbereich", "width": 100}
22 ], 24 ],
27 }, 29 },
28 { "id": "3", 30 { "id": "3",
29 "name": "Proben pro Land", 31 "name": "Proben pro Land",
30 "description": "Proben gefiltert nach Ländern", 32 "description": "Proben gefiltert nach Ländern",
31 "sql": "select p.id as id, pt.probe_id_alt as probeId, p.netzbetreiber_id as netzbetreiberId, p.mst_id as mstId, p.umw_id as umwId, p.hauptproben_nr as hauptprobenNr from land.probe p join land.probe_translation pt on p.id = pt.probe_id where (netzbetreiber_id = :netz OR '' = :netz)", 33 "sql": "select p.id as id, pt.probe_id_alt as probeId, p.netzbetreiber_id as netzbetreiberId, p.mst_id as mstId, p.umw_id as umwId, p.hauptproben_nr as hauptprobenNr from land.probe p join land.probe_translation pt on p.id = pt.probe_id where (netzbetreiber_id = :netz OR '' = :netz)",
34 "type": "probe",
32 "result": [ 35 "result": [
33 {"dataIndex": "probeId", "header": "ProbeId", "width": 100}, 36 {"dataIndex": "probeId", "header": "ProbeId", "width": 100},
34 {"dataIndex": "netzbetreiberId", "header": "Land", "width": 100}, 37 {"dataIndex": "netzbetreiberId", "header": "Land", "width": 100},
35 {"dataIndex": "mstId", "header": "MST", "width": 100}, 38 {"dataIndex": "mstId", "header": "MST", "width": 100},
36 {"dataIndex": "umwId", "header": "Umweltbereich", "width": 100}, 39 {"dataIndex": "umwId", "header": "Umweltbereich", "width": 100},
42 }, 45 },
43 { "id": "4", 46 { "id": "4",
44 "name": "alle Proben mit Ort", 47 "name": "alle Proben mit Ort",
45 "description": "alle Proben mit Entnahmeort", 48 "description": "alle Proben mit Entnahmeort",
46 "sql": "select p.id as id, pt.probe_id_alt as probeId, p.netzbetreiber_id as netzbetreiberId, p.mst_id as mstId, p.umw_id as umwId, p.hauptproben_nr as hauptprobenNr, so.gem_id as gemId, v.bezeichnung as bezeichnung from land.probe p join land.probe_translation pt on p.id = pt.probe_id left outer join land.ort o on (p.id = o.probe_id) left outer join stammdaten.ort so on (o.ort_id = so.id) left outer join stammdaten.verwaltungseinheit v on (so.gem_id = v.id) where o.orts_typ = 'E' or o.orts_typ is null", 49 "sql": "select p.id as id, pt.probe_id_alt as probeId, p.netzbetreiber_id as netzbetreiberId, p.mst_id as mstId, p.umw_id as umwId, p.hauptproben_nr as hauptprobenNr, so.gem_id as gemId, v.bezeichnung as bezeichnung from land.probe p join land.probe_translation pt on p.id = pt.probe_id left outer join land.ort o on (p.id = o.probe_id) left outer join stammdaten.ort so on (o.ort_id = so.id) left outer join stammdaten.verwaltungseinheit v on (so.gem_id = v.id) where o.orts_typ = 'E' or o.orts_typ is null",
50 "type": "probe",
47 "result": [ 51 "result": [
48 {"dataIndex": "probeId", "header": "ProbeId", "width": 100}, 52 {"dataIndex": "probeId", "header": "ProbeId", "width": 100},
49 {"dataIndex": "netzbetreiberId", "header": "Land", "width": 50}, 53 {"dataIndex": "netzbetreiberId", "header": "Land", "width": 50},
50 {"dataIndex": "mstId", "header": "MST", "width": 60}, 54 {"dataIndex": "mstId", "header": "MST", "width": 60},
51 {"dataIndex": "umwId", "header": "Umweltbereich", "width": 100}, 55 {"dataIndex": "umwId", "header": "Umweltbereich", "width": 100},
58 }, 62 },
59 { "id": "5", 63 { "id": "5",
60 "name": "Proben pro Land und UMW (Multiselect)", 64 "name": "Proben pro Land und UMW (Multiselect)",
61 "description": "Abfrage aller Proben gefiltert pro Land und Umweltbereich (mit Mehrfachauswahl)", 65 "description": "Abfrage aller Proben gefiltert pro Land und Umweltbereich (mit Mehrfachauswahl)",
62 "sql": "select p.id as id, pt.probe_id_alt as probeId, p.netzbetreiber_id as netzbetreiberId, p.mst_id as mstId, to_char(p.probeentnahme_beginn,'YYYY-mm-dd HH24:MI') entnahmeVon, to_char(p.probeentnahme_ende,'YYYY-mm-dd HH24:MI') entnahmeBis, p.umw_id as umwId, p.hauptproben_nr as hauptprobenNr, o.orts_typ as ortsTyp, so.gem_id as gemId, v.bezeichnung as bezeichnung from land.probe p join land.probe_translation pt on p.id = pt.probe_id left outer join land.ort o on (p.id = o.probe_id) left outer join stammdaten.ort so on (o.ort_id = so.id) left outer join stammdaten.verwaltungseinheit v on (so.gem_id = v.id) where (o.orts_typ = 'E' or o.orts_typ is null) and (p.netzbetreiber_id = :netz OR '' =:netz) and (p.umw_id similar to (:umw_id) OR '' = :umw_id)", 66 "sql": "select p.id as id, pt.probe_id_alt as probeId, p.netzbetreiber_id as netzbetreiberId, p.mst_id as mstId, to_char(p.probeentnahme_beginn,'YYYY-mm-dd HH24:MI') entnahmeVon, to_char(p.probeentnahme_ende,'YYYY-mm-dd HH24:MI') entnahmeBis, p.umw_id as umwId, p.hauptproben_nr as hauptprobenNr, o.orts_typ as ortsTyp, so.gem_id as gemId, v.bezeichnung as bezeichnung from land.probe p join land.probe_translation pt on p.id = pt.probe_id left outer join land.ort o on (p.id = o.probe_id) left outer join stammdaten.ort so on (o.ort_id = so.id) left outer join stammdaten.verwaltungseinheit v on (so.gem_id = v.id) where (o.orts_typ = 'E' or o.orts_typ is null) and (p.netzbetreiber_id = :netz OR '' =:netz) and (p.umw_id similar to (:umw_id) OR '' = :umw_id)",
67 "type": "probe",
63 "result": [ 68 "result": [
64 {"dataIndex": "probeId", "header": "ProbeId", "width": 100}, 69 {"dataIndex": "probeId", "header": "ProbeId", "width": 100},
65 {"dataIndex": "netzbetreiberId", "header": "Land", "width": 50}, 70 {"dataIndex": "netzbetreiberId", "header": "Land", "width": 50},
66 {"dataIndex": "mstId", "header": "MST", "width": 50}, 71 {"dataIndex": "mstId", "header": "MST", "width": 50},
67 {"dataIndex": "entnahmeVon", "header": "Entnahme von", "width": 120}, 72 {"dataIndex": "entnahmeVon", "header": "Entnahme von", "width": 120},
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)