Hi, I'm looking at the new classmapping stuff that got added in the 3.2 release of nh.
To test this out, I'm converting the hbm-mappings of the alexandria project to classmappings. However, I'm running into a problem when mapping a set or a list. Exception: unknown column "elt". Clearly there's something wrong in the my mappings, but I just can't seem to figure it out. Alexandria: https://github.com/ayende/Alexandria I will paste a portion of the hbm (which works) <set name="CurrentlyReading" table="UsersReadingBooks"> <key column="`User`"/> <many-to-many class="Book" column="Book"/> </set> portion of my mapping (which doesn't work) Set(x => x.CurrentlyReading, mapper => { mapper.Table("UsersReadingBooks"); mapper.Key(y => y.Column("`User`")); }, element => { element.ManyToMany(y => { y.Class(typeof (Book)); y.Column("Book"); y.ForeignKey("Book"); }); element.Element(y => y.Column("Book")); }); My guess was that y.Column in the manytomany would be sufficient, but it's not. That's why I tried all the things that looked like it could be that too. But it still doesn't work. Can someone see what's wrong with my mapping? Thanks, Ike -- 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.
