1
是否有與使用OpenJPA的Spring Data JPA @ Query-Annotation的本機sql!= - 運算符等價的方法?所以,我認爲它會有點像這樣工作:Spring Data JPA/OpenJPA:是否有等價於SQL!= - 運算符
@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")
作品。
剛剛在此處找到相應部分:http://openjpa.apache.org/builds/2.1.1/apache-openjpa/docs/jpa_langref.html(如果有人想更深入瞭解,請參閱第2.5.5章和),但無論如何感謝!我沒有找到文檔站點,所以我在這裏問。這是凌晨在這裏;)當我可以接受你的答案時(7分鐘) – Dominik