-->
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: Urget Help using store procedures in Nhibernate
PostPosted: Wed Apr 14, 2010 7:56 am 
Newbie

Joined: Wed Apr 14, 2010 7:39 am
Posts: 2
CREATE PROCEDURE spCattotal
Sex Char(1),Weight Varchar(50)

AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;

select * from Cat where Sex=@Sex and Weight=@Weight
END
GO
Above store procedure i have passed two parameters normally i have implemented using one parameter.
my problem is as follows
<sql-query name="spCat">
<return alias="spCat" class="Cat">
<return-property column="CatId" name="Id" />
<return-property column="Sex" name="Sex" />
<return-property column="Weight" name="Weight" />
</return>
exec dbo.spCat :Sex,Weight (here is problem how to pass two parameters here)
</sql-query>


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.