小编Bon*_*hen的帖子

could not read column value from result set

1)my hibernate not work when upgrade from Jboss5.1.0 to Jboss5.2.0, so Hibernate get upgrade as well. before upgrade: hibernate-core.jar: 3.3.1.GA hibernate-entitymanager.jar: 3.4.0.GA hibernate-annotation.jar: 3.4.0.GA

after upgrade: hibernate-core.jar: 3.3.2.GA_CP05 hibernate-entitymanager.jar: 3.4.0.GA_CP05 hibernate-annotation.jar: 3.4.0.GA_CP05

2)from the server, I found hibernate using a none-exist column alias(agreeme17_69_17_) to get value from resultset.

3)and I found exactly the same issue :https://forum.hibernate.org/viewtopic.php?f=1&t=968677 ---from which, the issue is caused by not specify all the columns explicitly in the select clause in the native sql.

4)但我在映射文件中使用的注释不是本机sql,所有列都应该包含在select子句中.

5)当我用旧的替换所有hibernate*jar时,它再次起作用. …

oracle jboss hibernate jpa jboss5.x

13
推荐指数
1
解决办法
1896
查看次数

标签 统计

hibernate ×1

jboss ×1

jboss5.x ×1

jpa ×1

oracle ×1