Hi,

I can't find how to map a uni-directional one to many relationship
with a join table.

In the object model: Game has a collection of Player (Player has NOT a
reference to Game).

In the relational model: the association between Game and Player is
implemented with a join table Game_Player.

I have tried something like that
// in GameMap
this.HasMany<Player>(g => g.Players)
                .Table("Game_Player")
                .AsBag()
                .Cascade.All();

But I can't specify the join column name.

Is this scenario supported ?

Thanks in advance,
Jeff

-- 
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" group.
To post to this group, send email to fluent-nhibern...@googlegroups.com.
To unsubscribe from this group, send email to 
fluent-nhibernate+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/fluent-nhibernate?hl=en.

Reply via email to