【发布时间】:2013-11-26 06:43:25
【问题描述】:
对于使用 OpenJPA 的 Spring Data JPA @Query-Annotation,是否有与本机 sql !=-operator 等效的操作?所以我认为它会像这样工作:
@Query("select a from TableA a, TableB b where a.property != b.property")
但它没有,或者至少可以说我的 ide (intellij) 告诉我它不知道如何使用 '!='。
(我想的)对应的
@Query("select a from TableA, TableB b where a.property = b.property")
有效。
【问题讨论】: