Commit 316631a7 by Mihailo Sebek

zahtevVlasikKom i zahtevKorisnikKom

parent 4f4e8d2c
......@@ -153,4 +153,29 @@ public class ZahtevRepository {
throw new RuntimeException(e);
}
}
public void zahtevVlasnikKom(int zahtevId)
{
String sql = "{ call zahtevVlasnikKom(?)}";
CallableStatement cs = null;
try {
cs = dataBase.connection.prepareCall(sql);
cs.setInt( 1, zahtevId);
cs.execute();
} catch (SQLException e) {
throw new RuntimeException(e);
}
}
public void zahtevKorisnikKom(int zahtevId)
{
String sql = "{ call zahtevKorisnikKom(?)}";
CallableStatement cs = null;
try {
cs = dataBase.connection.prepareCall(sql);
cs.setInt( 1, zahtevId);
cs.execute();
} catch (SQLException e) {
throw new RuntimeException(e);
}
}
}
Markdown is supported
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