I don't believe you can map a collection to a stored procedure. The mappings need to be able to have actual column or classes (which are then also mapped to columns) to be useful in that sense. otherwise you're only able to read from the collection, and it could never be populated to begin with.
It sounds like, what you want, is to map the collection to a physical class (which is then mapped to a table/columns).
Then you can create a new collection of that type and use a Stored Procedure to query t as described on chapter 13.2.2 of the NHibernate Reference pdf.
Again, I don't think you're going to be able to map directly to a stored procedure because of the way NHibernate expects to interact with the objects.
|