If it's important to you, supply me with a patch and I'll commit it; it's
not important to me, so I won't be doing the work. I know that sounds pretty
blunt, but I have a lot more important things to tackle before this becomes
a priority.
On Wed, Mar 4, 2009 at 6:24 PM, Ramana Kumar <[email protected]>wrote:

> That was pretty quick and final!
> I completly agree with the technical reason behind not keeping the order.
> However, your point *"because it's wholly irrelevant; the XML is for
> NHibernate"* is not quite accurate.  NHibernate users frequently have to
> keep going back-n-forth between Properties, XML and Database column.With DDD
> aproach, creating XML and consequently, the database columns being in
> different order, does create friction.
> Thanks
> Ramana
>
> On Wed, Mar 4, 2009 at 12:03 PM, James Gregory <[email protected]>wrote:
>
>> 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 <[email protected]>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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/fluent-nhibernate?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to