-->
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.  [ 3 posts ] 
Author Message
 Post subject: how to map a stored proc using nhibernate
PostPosted: Mon Oct 17, 2005 2:06 am 
Beginner
Beginner

Joined: Mon Oct 17, 2005 1:58 am
Posts: 27
Is it possible to map a stored procedure using nhibernate? If yes, how?
If no then what is the alternative solution? Any illustrative example will be greatly appreciated.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 18, 2005 9:23 am 
Beginner
Beginner

Joined: Tue Aug 09, 2005 9:43 am
Posts: 30
Location: Lisbon, Portugal
From what I read that will be sometime after the 1.0 release (which already happened).

If you'd like to see this implemented, like I would, you can vote for it here:
http://jira.nhibernate.org/browse/NH-258
:wink:


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 18, 2005 1:28 pm 
Senior
Senior

Joined: Sat Sep 10, 2005 3:46 pm
Posts: 178
I have a workaround for complicated list queries that require a sproc and cant be done with HQL.

What I do is have the sproc return the identifiers of the entities I am querying for. I store these identifiers in an array. Then I use ICriteria with an InExpression and pass in the Identifiers that I got from the sproc.

Granted two queries are required, but I think performanc is acceptable until sproc support is provided.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.