spring-boot - SpringBoot Data JPA Specification 不适用于 1.5.10.RELEASE 版本的 IN CLUASE
问题描述
以下代码适用于 Spring boot org.springframework.boot版本2.0.3.RELEASE,这里我尝试应用IN子句。
//进口
import org.springframework.context.annotation.DeferredImportSelector.Group;
import javax.persistence.criteria.Predicate;
//代码
final Collection<Predicate> predicates = new ArrayList<>();
...
final Path<Group> group = root.<Group> get("countryId");
predicates.add(group.in(selected_country_ids));
但是,Group 似乎无法在org.springframework.boot版本1.5.10.RELEASE
解决方案
推荐阅读
- shopify - 我的 shopify 网站的 About 页面的代码在哪里?
- fortran - 如何在 Fortran 中使用 iso_c_binding 接收数组
- list - 如何在 Flutter 中每天重置东西?
- python - 将参数传递给命令组,python fire
- swiftui - 如何修复 NavigationLink 错误?
- c - 为什么 kill 不适用于某些进程但适用于其他进程?
- python - 当我自己的列更改时更新我推荐的 SQLAlchemy 列
- javascript - , 被添加到 HTML 结构中
- javascript - Alexa 设备地址 API 问题
- sql - bigquery:加入“结构”列