-->
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: Problem in Exceuting Stored Procedure hibernate
PostPosted: Thu Oct 01, 2009 3:34 am 
Newbie

Joined: Thu Oct 01, 2009 2:07 am
Posts: 3
hi ,
I am new in Hibernate I want to execute Store Procedure through hibernate but I faced this problem,
Exception in thread "main" org.hibernate.HibernateException: Errors in named queries: Test

I made one Test name Store Procedure in Database and my hbm.xml 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" >
<return alias="P" class="Login">
<return-property name="fromName" column="form_name"></return-property>
<return-property name="code" column="code"></return-property>


</return>

Exec 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.