SpEL Spring Exp, I am aware that we can just use the concatenation operator +
so constants are evaluated.
@Query(value = "UPDATE kdo set is_revise=0, update_by="
+ Constant.CREATOR+ ", update_time= CURRENT_TIMESTAMP where kdo.id=:kdoId", nativeQuery = true)
int flagRevised(String kdoId);
But I am curious that it can be done using Spring Expression Langage. As somehow already demonstrated here. But in my case, I want to use constant, my method only needs 1 parameter.