I'm trying to delete a row from a table using JDBC template but somehow it just doesn't work, no errors just nothing. The Insert Into works just fine with almost same logic.
@Override
public void deleteEntry(long id) {
String deleteQuery = "DELETE FROM company WHERE id = ?";
jdbcTemplate.update(deleteQuery, id);
}
and for example, the working sniped
@Override
public long addEntry(Company entry) {
String insertSql = "INSERT INTO company VALUES (?,?,?,?,?,?,?,?,?)";
jdbcTemplate.update(insertSql, companyObject(entry));
return 0;
}
I'm really confused at the moment so if you have any idea that will be great.