-->
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.  [ 1 post ] 
Author Message
 Post subject: Proble in Implement Stored Procedure in hibernate
PostPosted: Thu Oct 01, 2009 2:18 am 
Newbie

Joined: Thu Oct 01, 2009 2:07 am
Posts: 3
hi,
I am new in hibernate I am creating web base application in which I am creating report using Stored Procedure but whenever I am trying exceute Stored procedure using hibernate I am facing following error
"Caused by: org.xml.sax.SAXParseException: Attribute "callable" must be declared for element type "sql-query"."

my hbm.xml file as follows
Code:
<?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>

  <sql-query name="Test_SP" callable="true">
    <return alias="emp" class="Login">
   
        <return-property name="fromName" column="form_name"/>
        <return-property name="code" column="code"/>
       
    </return>
    { ? = call Neo_SWD_2009..Test() }
</sql-query>
</hibernate-mapping>


PLease help me ...
Thank You
Prashant


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

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:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.