One way, if you have access to the data model, would be to turn that
stored proc into a view. The view could map back to a domain entity,
and you could run an hql query on that.

Another option might be to run your stored proc and use Linq to
perform a query on the result set the stored proc returns.

I realize I'm not directly answering your question, post a bit of code
that shows how you're using the stored proc now and I might be able to
give you a more definitive answer.

-devon

On Feb 2, 1:14 am, Dor Rotman <[email protected]> wrote:
> Hello,
> I have an entity mapped regularly to a table and would like to run an
> HQL query on it.
> However, in some cases, I'd like to run this HQL not directly on the
> mapped table for entity, but rather - on a resultset of a stored
> procedure that returns the same columns.
>
> Is there any way to do an HQL query that selects from a stored
> procedure resultset?
>
> Thanks,
> Dor.

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to