JPA 存储库按函数名称查询不等于

JPA repository queries by function name for not equals

我正在尝试通过 Spring (JPA) 中可用的函数名编写查询。我需要这样的东西 select * from table where col1=x AND col2=y AND col3 <> z。以下函数名称是否等效?

findByCol1AndColb2ndCol3IsNot(....)

findByCol1AndCol2AndCol3Not -> 你只需要删除 "Is" 。以下页面列出了所有可能的关键字:

https://docs.spring.io/spring-data/jpa/docs/current/reference/html/#jpa.query-methods.query-creation