我正在尝试通过Spring(JPA)中可用的函数名编写查询。我需要类似select * from table where col1=x AND col2=y AND col3 <> z
的东西。以下函数名称是否等效?
findByCol1AndColb2ndCol3IsNot(....)
答案 0 :(得分:1)
findByCol1AndCol2AndCol3Not->您只需删除“ Is”。以下页面列出了所有可能的关键字:
https://docs.spring.io/spring-data/jpa/docs/current/reference/html/#jpa.query-methods.query-creation