文字列を渡してみますか?
@Query(value="select * from recalls_t where created_date <= (now() - interval ?1)",
nativeQuery=true)
public List<RecallsT> findActiveRecallsInLastHrs(String interval);
// ...
findActiveRecallsInLastHrs("1 hour");
文字列を渡してみますか?
@Query(value="select * from recalls_t where created_date <= (now() - interval ?1)",
nativeQuery=true)
public List<RecallsT> findActiveRecallsInLastHrs(String interval);
// ...
findActiveRecallsInLastHrs("1 hour");