-->
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.  [ 2 posts ] 
Author Message
 Post subject: Call stored procedure form NHibernate
PostPosted: Mon Apr 26, 2010 4:28 am 
Newbie

Joined: Mon Apr 26, 2010 4:11 am
Posts: 1
Hi all.

Trying to call a sp using NHibernate (Fluent). This is the code:

IQuery query = (IQuery)session.GetNamedQuery("MySP");
System.Collections.IList result = query.List();

But when running, the SP cannot be found. Is it something you should add in the mapping? Or somewhere else? I am not using xml mapping file.

I get a "MappingException". "Named query not known: MySP"

Need some help here.



Thanks!

Arthur


Top
 Profile  
 
 Post subject: Re: Call stored procedure form NHibernate
PostPosted: Mon Apr 26, 2010 4:50 am 
Beginner
Beginner

Joined: Fri Feb 27, 2009 6:07 am
Posts: 38
Location: Moscow,Russia
Fluent NHibernate not supported stored procedures for querying.


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

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.