Ром*_*нко 12 postgresql hibernate exception ioexception
我有休眠查询:
getSession()
.createQuery("from Entity where id in :ids")
.setParameterList("ids", ids)
.list();
Run Code Online (Sandbox Code Playgroud)
其中 ids 是 Collection id,可以包含很多 id。目前,当集合非常大时,我遇到了异常: java.io.IOException: Tried to send an out-of-range integer as a 2-byte value 我听说 postgre 有一些问题。但是我找不到如何在 hql 上重写它的解决方案。
| 归档时间: |
|
| 查看次数: |
10013 次 |
| 最近记录: |