java - 在 IgniteRepository 中使用连接查询时无法从类型 [java.util.ArrayList ] 转换错误
问题描述
在 IgniteRepository 中使用连接查询时出现异常。
@Query(" select pers.* from Person as pers, ORG_CACHE.Organization as org where pers.orgId = org.id and lower(org.name) = lower(?)")
List<Person> selectPersonByOrganization(String organizationName);
例外:
{
"timestamp": "2020-07-09T05:02:16.141+0000",
"message": "Failed to convert from type [java.util.ArrayList<?>] to type [@org.apache.ignite.springdata22.repository.config.Query java.util.List<com.cache.entity.Person>] for value '[1, 2, 3, 6, 7, 8]'; nested exception is org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from type [java.lang.Long] to type [@org.apache.ignite.springdata22.repository.config.Query com.cache.entity.Person]",
"details": "uri=/person/organization/ApacheIgnite"
}
还想知道连接是分布式的还是托管的。
Apache Ignite:2.8.1 备用数据:ignite-spring-data_2.2
解决方案
推荐阅读
- sapui5 - SAP Cloud Platform 与 SAPUI5 的关系?
- python - Python Pandas 使用基于另一个具有重叠索引的数据框中的列的值更新数据框列
- reactjs - 在反应文本组件中动态设置字体大小
- java - 将文件从 android 设备传输到 android studio
- apiconnect-test-monitor - 在 CI (Jenkins) 中运行 API 测试
- python-3.x - 从 xyz 坐标集创建距离矩阵(python)
- python - 如何获取音频文件中特定时间戳的特定频率?
- sql - Extract time points meeting some time interval criteria
- .htaccess - 带有 HTTPS 的 HTACCESS 和带有端口的子域
- html - 当鼠标悬停在按钮上时在 CSS 上翻转动画