[fluent-nhib] Map(..).Formula() generates wrong mapping

2010-04-21 Thread Filip Kinsky
I just needed to map one property using formula, but it looks like the formula statement isn't executed at all and I get DB exception for nonexistent column (ChildrenCount) instead, because FNH always includes column element in property mapping. I'm using NHibernate 3.0.0.1001 so maybe that's the

[fluent-nhib] convention for column name for References() and HasMany()

2009-03-27 Thread Filip Kinsky
I have situation like Employee.Store vs Store.Stuff in this sample: http://wiki.fluentnhibernate.org/show/GettingStarted%3A+First+Project . I use ClassMapT for my mappings like in the sample. I'd like to use convention to set DB column name to Property.Name + Id (resulting to EMPLOYEE.STOREID).

[fluent-nhib] is it possible to combine ClassMap with conventions?

2009-03-11 Thread Filip Kinsky
I'm beginning with FluentNH and I'm just thinking if it's possible to combine standard ClassMaps with conventions approach. I think it's not possible, but I'm rather asking... I'd like for example to define that all string properties with name Description should map to DESCR field with length 200

[fluent-nhib] Re: is it possible to combine ClassMap with conventions?

2009-03-11 Thread Filip Kinsky
perfect - thanks a lot for quick response. On 11 Bře, 09:49, James Gregory jagregory@gmail.com wrote: Conventions can be applied to standard ClassMaps.http://wiki.fluentnhibernate.org/show/StandardMappingConventions On Wed, Mar 11, 2009 at 7:51 AM, Filip Kinsky fi...@filovo.net wrote

[fluent-nhib] Re: Constraints not making it to the database schema

2009-03-11 Thread Filip Kinsky
Is this applied to the trunk? I'm just facing simmilar problems (on Oracle) - fields don't get length specified and FK names are generated randomly even though I specify both in my conventions... On 20 Ún, 01:47, Steven Lyons stevenly...@gmail.com wrote: Take II: This patch passes the tests.

[fluent-nhib] Re: How do I configure a session factory for oracle?

2009-02-19 Thread Filip Kinsky
you can use configuration class for Oracle from this blog post: http://tiredblogger.wordpress.com/2008/12/04/persistanceconfiguration-for-oraclefluent-nhibernate/ On 18 Ún, 22:32, George Mauer gma...@gmail.com wrote: Almost certainly a stupid question but I can't find the answer anywhere. In

[fluent-nhib] how to create convention for sequence name for identity mapping (Oracle)?

2009-02-19 Thread Filip Kinsky
Maybe I just can't see something obvious, but how can I create convention for mapping ID fields to Oracle's sequence with name like seq_ + entityTypeName? I'm not able to figure out how to access the ID property type and according to source code (IdentityPart.cs) the _property member field is not

[fluent-nhib] Re: how to create convention for sequence name for identity mapping (Oracle)?

2009-02-19 Thread Filip Kinsky
-nhibernate/issues/detail?id=81created for this a while back, but nobody's claimed it yet. On Thu, Feb 19, 2009 at 7:55 AM, Filip Kinsky fi...@filovo.net wrote: Maybe I just can't see something obvious, but how can I create convention for mapping ID fields to Oracle's sequence with name like