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