Nope. It's not possible because we sort all the mappings to make sure it satisfies NHibernate's order requirements. If we didn't do this, you can create invalid mappings depending on what order you map things. We'd have to come up with a more sophisticated algorithm for sorting, but I really don't want to dedicate any time to that because it's wholly irrelevant; the XML is for NHibernate, not for the user, so it doesn't matter.
On Wed, Mar 4, 2009 at 5:38 PM, Ramana Kumar <ramana.r.ku...@gmail.com>wrote: > Hi > I looked at the following thread Debugging Xml Output by > FNH<http://groups.google.com/group/fluent-nhibernate/browse_thread/thread/ef08a94a01d3ab65/ea606c483f5db22c>. > It would be really nice to keep the order the same between Properties and > the XML. For example > > Entity > int Id > > AuditableEntity : Entity > DateTime CreatedDate > string CreatedBy > DateTime UpdatedOn > string UpdatedBy > > Customer : AuditableEntity > string Name > ... > > > > Would like to keep the XML order as follows. Consequently, the Database > column order would also be preserved. > > Id > CreatedDate > CreatedBy > UpdatedOn > UpdatedBy > Name > ... > > > Is there anyway to keep the order? > Thanks > Ramana > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To post to this group, send email to fluent-nhibernate@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 -~----------~----~----~----~------~----~------~--~---