diff --git a/src/main/java/com/roshka/proyectofinal/DataBase.java b/src/main/java/com/roshka/proyectofinal/DataBase.java index f2c742e..12d2450 100644 --- a/src/main/java/com/roshka/proyectofinal/DataBase.java +++ b/src/main/java/com/roshka/proyectofinal/DataBase.java @@ -11,7 +11,7 @@ public class DataBase { Class.forName("org.postgresql.Driver"); con= DriverManager .getConnection("jdbc:postgresql://localhost:5432/bootcamp_th", - "postgres", "2022roshka"); + "postgres", "postgres"); if(con != null){ System.out.println("---> CONNECTED TO SERVER"); diff --git a/src/main/java/com/roshka/proyectofinal/bootcamp/BootcampDao.java b/src/main/java/com/roshka/proyectofinal/bootcamp/BootcampDao.java index e56c1dd..f492666 100644 --- a/src/main/java/com/roshka/proyectofinal/bootcamp/BootcampDao.java +++ b/src/main/java/com/roshka/proyectofinal/bootcamp/BootcampDao.java @@ -146,8 +146,6 @@ public class BootcampDao { // "\twhere a.fecha_inicio ilike ? and\n" + // "\ta.fecha_fin ilike ? and b.nombre_lenguaje ilike ?"; - - try{ Connection con= DataBase.getConnection(); //PreparedStatement ps=con.prepareStatement(""); diff --git a/src/main/java/com/roshka/proyectofinal/profesor/ProfesorDao.java b/src/main/java/com/roshka/proyectofinal/profesor/ProfesorDao.java index f96f126..4013f03 100644 --- a/src/main/java/com/roshka/proyectofinal/profesor/ProfesorDao.java +++ b/src/main/java/com/roshka/proyectofinal/profesor/ProfesorDao.java @@ -58,7 +58,7 @@ public class ProfesorDao { Profesor profesorObject = new Profesor(); try{ Connection con= DataBase.getConnection(); - PreparedStatement ps=con.prepareStatement("select a.id, a.nombre, a.apelli do, a.nro_cedula, a.correo from profesor a " + + PreparedStatement ps=con.prepareStatement("select a.id, a.nombre, a.apellido, a.nro_cedula, a.correo from profesor a " + " where a.nombre ilike ? and a.apellido ilike ? ");