之前這是一個簡單的接口CrudRepositories - @Query過程查詢參數執行
public interface HPCrudRepository<T,ID extends Serializable>{
@Query("<how to write query here")
public List getThis(String somevalue);
}
在上述例子中
,參數someValue
不能直接傳遞給查詢。我將不得不做一些預處理(比如用逗號或管道符號分割)。
我如何預先處理的參數變量
不認爲這是可能的。你必須編寫你的接口實現。 – Patrick