comparison src/main/java/de/intevation/lada/factory/ProbeFactory.java @ 1215:6e393b614edf

The referencing column does not need to be wider than what it refereces.
author Tom Gottfried <tom@intevation.de>
date Thu, 08 Dec 2016 15:23:55 +0100
parents 84ff77bba9b0
children 9dfb52db6a0f
comparison
equal deleted inserted replaced
1214:6e6134bf1d6d 1215:6e393b614edf
386 Response ortResponse = repository.filter( 386 Response ortResponse = repository.filter(
387 ortBuilder.getQuery(), "stamm"); 387 ortBuilder.getQuery(), "stamm");
388 @SuppressWarnings("unchecked") 388 @SuppressWarnings("unchecked")
389 List<Ort> orte = (List<Ort>) ortResponse.getData(); 389 List<Ort> orte = (List<Ort>) ortResponse.getData();
390 if (orte != null && !orte.isEmpty()) { 390 if (orte != null && !orte.isEmpty()) {
391 ort.setOrtId(Long.valueOf(orte.get(0).getId())); 391 ort.setOrtId(orte.get(0).getId());
392 } 392 }
393 repository.create(ort, "land"); 393 repository.create(ort, "land");
394 } 394 }
395 // Reolad the probe to have the old id 395 // Reolad the probe to have the old id
396 probe = (Probe)repository.getById( 396 probe = (Probe)repository.getById(
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)