JDBC 4 Annotation Example using Update Query
The Update annotation is used to decorate a Query interface method to update one or more records in a database table.
An Update annotation must include a sql annotation type element.
1 2 3 4 |
interface LoanAppDetailsQuery extends BaseQuery { @Update(sql="update LoanDetails set LoanStatus = ?1 where loanId = ?2") boolean updateLoanStatus(String loanStatus, int loanId); } |