[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-3288) CallableStatement problem...callable not yet supported for native queries
Thomas Modeneis (JIRA)
noreply at atlassian.com
Fri May 16 16:10:33 EDT 2008
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-3288?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_30204 ]
Thomas Modeneis commented on HHH-3288:
--------------------------------------
I can make this call like this:
"
Session session = getSession();
Connection con = null;
CallableStatement proc = null;
try {
con = session.connection();
proc = con.prepareCall("execute GRAVAVIAGEM ?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,? ");
proc.setString(1, String.valueOf(i.getCodigo()));
(..more proc.setString... )
boolean executou = proc.execute();
con.commit();
} catch (Exception e) {
e.printStackTrace();
fail(e.getMessage());
}
"
But, i can do this using hibernate ?? it wil be more integraded.
Thanks for all.
> CallableStatement problem...callable not yet supported for native queries
> -------------------------------------------------------------------------
>
> Key: HHH-3288
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3288
> Project: Hibernate3
> Issue Type: New Feature
> Components: query-sql
> Environment: java
> Reporter: Thomas Modeneis
> Priority: Blocker
> Attachments: hibernate.rar
>
>
> when i try to execute some insert as attachement: procedure.txt
> some error "callable not yet supported for native queries" occours.
> what can i do to execute this query ?
> Regards,
> Thomas.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list