It seems we have the same problem:
http://stackoverflow.com/questions/1372399/how-to-map-this-in-fluent-nhibernate
I just used hbm.xml (that was generated by Fluent.Nhibernate in my project) I modified it a little oufcourse. If you set
.Mappings(m =>
{
m.FluentMappings.AddFromAssemblyOf<DomainClass>()
.ExportTo("Path");
m.HbmMappings.AddFromAssemblyOf<DomainClass>();
})
and if you have both ClassMap and hbm.xml the hbm.xml should override the ClassMap, so you'll be fine untill it's fixed.
I also need natural-id for my class and it also isn't supported with Fluent.Nhibernate, so I had no choice but to use hbm.xml
dmonlord
2009-09-03 12:19:08