Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Java EE 综合讨论区 » Hibernate  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 求助:关于Hibernate调用存储过程的问题.
azraelpp





发贴: 5
积分: 0
于 2007-08-23 11:12 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
版本信息:
Eclipse3.2
MyEclipse5.0m2
SqlServer2000
我是刚刚学习Hibernate很多地方不明白请高手指点,万分感谢.
自己写了一个小例题,其中表的增删改查已经可以实现了,就是在调用存储过程的时候出错.org.hibernate.exception.GenericJDBCException: could not execute query.
之后这个例题我使用了MySql数据库进行调试,结果可以.存储过程调用正常.
请大家帮助我一下.谢谢.
下面是我的部分代码贴图.

1.bmp (729.05k)



作者 Re:求助:关于Hibernate调用存储过程的问题. [Re:azraelpp]
azraelpp





发贴: 5
积分: 0
于 2007-08-23 11:17 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
上面的图格式不好我重贴

1.jpg (729.05k)



作者 Re:求助:关于Hibernate调用存储过程的问题. [Re:azraelpp]
azraelpp





发贴: 5
积分: 0
于 2007-08-23 11:20 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
这是mapping的图

2.jpg (729.05k)



作者 Re:求助:关于Hibernate调用存储过程的问题. [Re:azraelpp]
azraelpp





发贴: 5
积分: 0
于 2007-08-23 11:27 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
这是错误信息

3.jpg (780.08k)



作者 Re:求助:关于Hibernate调用存储过程的问题. [Re:azraelpp]
vning





发贴: 8
积分: 0
于 2007-08-23 15:31 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
Hibernate不支持存储过程


作者 Re:求助:关于Hibernate调用存储过程的问题. [Re:azraelpp]
vning





发贴: 8
积分: 0
于 2007-08-23 15:33 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
每一个框架有它的优点也有缺点


作者 Re:求助:关于Hibernate调用存储过程的问题. [Re:azraelpp]
azraelpp





发贴: 5
积分: 0
于 2007-08-26 02:23 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
Hibernate 3.0以上是支持存储过程的调用,并且本人在Mysql数据库也已经尝试过了,现在的问题是把Mysql 换成 SqlServer2000 ,如何做到存储过程的调用.


作者 Re:求助:关于Hibernate调用存储过程的问题. [Re:azraelpp]
vning





发贴: 8
积分: 0
于 2007-08-27 17:20 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
把Mysql的表导成sql脚本,再生成sqlserver2000的表,但是关系和主键不被创建



flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923