JPA实现不等于查询

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/OHRadiance/article/details/80320255

一时半会儿没找到jpa的不等查询,然后用HSQL写,真J8麻烦,HSQL干嘛非得和SQL标准不一样,非得扯上所谓的对象概念?

SQL:select * from table where property!=

HSQL:select a from table a where a.property !=

JPA:findByPropertyNot(property);

还是JPA简单暴力。

猜你喜欢

转载自blog.csdn.net/OHRadiance/article/details/80320255