[fluent-nhib] Re: building database w/AutoMapping column ordering question

2009-05-01 Thread Stuart Childs
Oops, I made the previous list by scanning the documentation instead of the mapping schema .xsd... Might want to add the following to the list: meta jcs-cache idbag primitive-array union-subclass filter sql-* Though it's probably unnecessary since I think most (all?) don't really apply for FNH's

[fluent-nhib] Re: Text length not being set in schema: #WithlengthOf #Convention #AutoMap

2009-05-01 Thread MaggiePlusPlus
Yes. The dialect should have used "TEXT($l )" but was "TEXT($1)". I could not tell with my font that the lower case L and the number 1 were even different. I guess the L is for length; the 1 seemed logical to me. I/m not sure if I would have figured it out ever had i not found the patch. I

[fluent-nhib] Re: building database w/AutoMapping column ordering question

2009-05-01 Thread MaggiePlusPlus
Thank you very much! let me know if I can help with anything. On May 1, 12:07 pm, James Gregory wrote: > That'll be my fault, as part of our redesign I've had to rewrite the > ordering code and it looks like I didn't incorporate the changes that were > done to fix this issue. > I've created a n

[fluent-nhib] Re: building database w/AutoMapping column ordering question

2009-05-01 Thread James Gregory
Great, thanks Stuart, I'll make sure those get added. As for the whitespace, it's a simple oversight. Until I can come to commit, if you open the PersistenceModel code and goto line 195, just before that line add writer.Formatting = Formatting.Indented;, that'll make it indent the xml nicely. On F

[fluent-nhib] Re: building database w/AutoMapping column ordering question

2009-05-01 Thread Stuart Childs
I believe the full list of missing tags is: timestamp one-to-one component dynamic-component any Also is but if I understand correctly that's at the level == class and this function is just for children? I haven't stepped through all the XML generation code so I'm not 100% sure about what gets

[fluent-nhib] Re: building database w/AutoMapping column ordering question

2009-05-01 Thread Stuart Childs
Correct; the generated HBM files have no whitespace... easy enough to fix with a ctl+k, ctl+d in VS. ;) On May 1, 11:41 am, James Gregory wrote: > Ah yes, silly mistake. I've added this in my local copy, but am in the > middle of some changes so haven't yet committed it. I've also noticed that >

[fluent-nhib] Re: building database w/AutoMapping column ordering question

2009-05-01 Thread James Gregory
Ah yes, silly mistake. I've added this in my local copy, but am in the middle of some changes so haven't yet committed it. I've also noticed that dynamic-component and one-to-one are both missing too, so there may be more too. This should really be reviewed. As for the other thing, is it that there

[fluent-nhib] Re: building database w/AutoMapping column ordering question

2009-05-01 Thread Stuart Childs
In my case, it looks like it was because the sorting dictionary in SortChildren() in XmlHibernateMappingWriter.cs was missing a "component" pair. Adding { "component", new SortValue { Position = PartPosition.Anywhere, Level = 2 } }, seems to have fixed my issue with that class, but it's hard to sa

[fluent-nhib] Re: building database w/AutoMapping column ordering question

2009-05-01 Thread James Gregory
Stuart: It might be too late now, but we'd greatly appreciate seeing the mappings causing the problems for you. They'd help us debug the ordering code. On Fri, May 1, 2009 at 5:05 PM, Stuart Childs wrote: > > While I'm not using AutoMappings, I was having a similar issue but was > more severe (w

[fluent-nhib] Re: building database w/AutoMapping column ordering question

2009-05-01 Thread Stuart Childs
While I'm not using AutoMappings, I was having a similar issue but was more severe (with only one of my classes, too... one of many oddities) where properties/components were being put before the tag, causing NHibernate to fail. It's very bizarre, but grouping all the Map(), Component(), and Ref

[fluent-nhib] Re: building database w/AutoMapping column ordering question

2009-05-01 Thread James Gregory
That'll be my fault, as part of our redesign I've had to rewrite the ordering code and it looks like I didn't incorporate the changes that were done to fix this issue. I've created a new issue for this and either myself or one of the

[fluent-nhib] Re: building database w/AutoMapping column ordering question

2009-05-01 Thread MaggiePlusPlus
I updated to version 464 of FNH and the columns are again out of order and the hbm.xml files have no formatting - all on one line. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To post to

[fluent-nhib] Re: Adding the discriminator-value attribute to class

2009-05-01 Thread James Gregory
The typical way to do this is when you're calling the DiscriminateSubClassesOnColumn method to pass in a second parameter that's the default value. On Fri, May 1, 2009 at 2:22 PM, Chuck wrote: > > I was trying to find a FNH way to add the class's discriminator-value > attribute. I ended up using

[fluent-nhib] Adding the discriminator-value attribute to class

2009-05-01 Thread Chuck
I was trying to find a FNH way to add the class's discriminator-value attribute. I ended up using the SetAttribute method, but was wondering if there was a different way. TIA C --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

[fluent-nhib] Re: Text length not being set in schema: #WithlengthOf #Convention #AutoMap

2009-05-01 Thread James Gregory
Great, so this is an issue with the JetDriver dialect? On Thu, Apr 30, 2009 at 7:11 PM, MaggiePlusPlus wrote: > > I found a patch in nhjira from last year that fixes this problem: > http://nhjira.koah.net/browse/NHCD-14 > I am putting this here in case someone has the same problem and finds > thi