Is it possible to use Spring Expression Language in a native query? I tried but faced exceptions. Also, I searched but couldn't find an obvious answer. For example:
@Query(value = "SELECT 1 FROM Table WHERE id=? and status= :#{T(com.test.constants.PrjConstants).TABLE_PENDING_STATUS_CODE}", nativeQuery = true)
public Integer isThereAnyPendingRecord(String id);