-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Problems with call procedure
PostPosted: Wed Jan 28, 2009 5:47 am 
Newbie

Joined: Wed Jan 28, 2009 5:34 am
Posts: 1
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:
3.2
Mapping documents:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>

<class name="pl.com.oands.solar.helpdesk.ui.dialogs.DialogProcedury">
<id name="id">
<generator class="increment"/>
</id>


<sql-query name="proc" callable="true">{call dodaj_kolumne()}</sql-query>

</class>



</hibernate-mapping>
Code between sessionFactory.openSession() and session.close():
List l = session.getNamedQuery("proc").list();
Full stack trace of any exception that occurs:
java.lang.UnsupportedOperationException: org.hibernate.dialect.MySQLDialect does not support resultsets via stored procedures.

Name and version of the database you are using:
Mysql 5
The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:


welcome i have problem with call procedure I read api and try do like this is write but I get exception
what I do wrong
thx for help


Top
 Profile  
 
 Post subject: Post stored procedure
PostPosted: Thu Feb 19, 2009 8:44 am 
Newbie

Joined: Mon Dec 08, 2008 5:51 pm
Posts: 8
Have you written the stored procedure so that it's first parameter is the out parameter for SYS_REFCURSOR?


Top
 Profile  
 
 Post subject: Post stored procedure
PostPosted: Thu Feb 19, 2009 8:44 am 
Newbie

Joined: Mon Dec 08, 2008 5:51 pm
Posts: 8
Have you written the stored procedure so that it's first parameter is the out parameter for SYS_REFCURSOR?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.