hibernate - Postgres-目标列表最多可以有1664个条目 [英] hibernate - Postgres- target lists can have at most 1664 entries

查看:1026
本文介绍了hibernate - Postgres-目标列表最多可以有1664个条目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们使用hibernate,postgres 8.3x b

我们的实体是多对一地映射的,
我们有多对多的关联。



当我们向任何其他现有实体添加新列时,
我们得到的错误如下:


目标列表最多可以包含1664个条目



我搜索了互联网,他们说这是由于
更多数量的SQL查询中的select语句(由hibernate生成)



您是否有任何机构请让我们知道是否有任何配置(在postgres中)
更新配置或其他任何解决方案中的最大列数。



预先感谢您。

解决方案

试试

 < property name = hibernate.max_fetch_depthvalue =25/> 


We are using hibernate, postgres 8.3x

Our entities are many to one mapped with eager fetching. We have multiple associations with Many to one mapping.

As we added new columns to any other existing entities, We are getting below error:

target lists can have at most 1664 entries

I searched internet and they say this is due to More number of select statements in sql query (generated by hibernate)

Can you any body please let us know if there is any configuration (in postgres) to update max number columns in configuration or any other solution to solve this issue.

Thank you in advance.

解决方案

Try

      <property name="hibernate.max_fetch_depth" value="25"/>

这篇关于hibernate - Postgres-目标列表最多可以有1664个条目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆