Yeah, you did.

What I'm after is something like:

<map name="CommentorsOnMyPosts" table="UserCommentorsOnPosts">
    <key column="UserId"/>
    <index-many-to-many column="CommentorUserId" class="User"/>
    <many-to-many class="Post" column="PostId" Alias="p" HqlQuery="new
PostDto(p.Foo, p.Bar)" access="read-only"/>
</map>

On Aug 11, 12:45 pm, Tuna Toksoz <[email protected]> wrote:
> ER I missed the dto part.
>
> Tuna Toksöz
> Eternal sunshine of the open source mind.
>
> http://devlicio.us/blogs/tuna_toksozhttp://tunatoksoz.comhttp://twitter.com/tehlike
>
> 2009/8/11 Krzysztof Koźmic (2) <[email protected]>
>
>
>
> > Yeah, but that's mapping Entity to Entity. I want to map Entity to DTO
> > instantiated on the fly from Entity.
>
> > On Aug 11, 12:37 pm, Tuna Toksoz <[email protected]> wrote:
> > > <map name="CommentorsOnMyPosts" table="UserCommentorsOnPosts">
> > >     <key column="UserId"/>
> > >     <index-many-to-many column="CommentorUserId" class="User"/>
> > >     <many-to-many class="Post" column="PostId"/></map>
>
> > >http://ayende.com/Blog/archive/2009/06/03/nhibernate-mapping-ndash-lt...
>
> > > Tuna Toksöz
> > > Eternal sunshine of the open source mind.
>
> >http://devlicio.us/blogs/tuna_toksozhttp://tunatoksoz.comhttp://twitt...
>
> > > 2009/8/11 Krzysztof Koźmic (2) <[email protected]>
>
>
--~--~---------~--~----~------------~-------~--~----~
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