Vorrei restituire un valore booleano utilizzando in questo metodo:restituire un valore booleano - jdbcTemplate
public Boolean isSizeOk(String transactionId){
String sqlQuery = "SELECT true FROM customer_pool WHERE id = "+ transactionID + " AND level = 13)";
//The next line is the problem.
//If I am returning a Boolean List, I can write
List <Boolean> sizeResult = jdbcTemplate.queryForList(sqlQuery, Boolean.class, transactionId);
//But since I only want a boolean value, what will the statement be?
Boolean sizeResult = jdbcTemplate......?
return sizeResult;
}
aiuto gentile. Grazie.
Grazie mille ... le vostre soluzioni sono sia a destra. Ora non so a chi assegnare la risposta corretta a :). Apprezzo il vostro aiuto! – bdfios