Commit 886d1e40 authored by dnsadmin's avatar dnsadmin
Browse files

Utolsó simítások

parent 1287aacf
......@@ -61,7 +61,7 @@ public class AppMain extends Application implements EventHandler<WindowEvent> {
* Command-line arguments
*/
public static void main(String[] args) {
Logger.setLevel(Logger.DEBUG);
// Logger.setLevel(Logger.DEBUG);
launch(args);
}
......
......@@ -80,7 +80,7 @@ public class AutoDal implements DataAccessLayer<JarmuFejlec, Jarmu, JarmuKimutat
"from JARMU inner join JARMUKOLCSONZES on (jarmukolcsonzes.jarmu_kulcs = jarmu.jarmu_kulcs), " +
"BERLO inner join Jarmukolcsonzes on (jarmukolcsonzes.berlo_kulcs = berlo.berlo_kulcs) " +
"where " +
"BERLO.LAKOHELY = 'Szeged' " +
"BERLO.LAKOHELY = 'Szeged' AND EXTRACT(YEAR from uzembehelyezes) >= 2007 " +
"group by alvazszam, marka, tipus, uzembehelyezes, szin";
try (Statement stmt = connection.createStatement()) {
try(ResultSet rset = stmt.executeQuery(queryString)) {
......@@ -98,8 +98,7 @@ public class AutoDal implements DataAccessLayer<JarmuFejlec, Jarmu, JarmuKimutat
}
} catch (SQLException e) {
// ha egyszer jó, akkor nem lehet
Logger.logMsg(Logger.DEBUG, e.getMessage());
e.printStackTrace();
Logger.logMsg(Logger.ERROR, e.getMessage());
result = null;
}
return result;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment