[fluent-nhib] Re: Public CI Box?

2009-02-04 Thread James Gregory
Sounds great, thanks Jeremy. I'd heard about it, but not that it was open. On Thu, Feb 5, 2009 at 1:13 AM, Jeremy D. Miller wrote: > Guys, > > For CI servers, how about just jumping onto the forthcoming > TeamCity.CodeBetter.com? It's meant to be open for all .Net OSS > projects. James Avery is

[fluent-nhib] Re: Public CI Box?

2009-02-04 Thread Jeremy D. Miller
Guys, For CI servers, how about just jumping onto the forthcoming TeamCity.CodeBetter.com? It's meant to be open for all .Net OSS projects. James Avery is helping as well. Contact him, or Brendan Tompkins (brendan.tompk...@gmail.com) to get FNH enrolled. Jeremy D. Miller The Shade Tree Deve

[fluent-nhib] Re: Many2Many table mapping is not correct

2009-02-04 Thread mblotny
Thanks for the quick update James! On 4 Lut, 23:45, James Gregory wrote: > Yep, this is a known bug. Until we fix it you need to explicitly specify the > table name for both sides of the relationship. > > On Wed, Feb 4, 2009 at 10:42 PM, wrote: > > > I have exactly the same issue ... something

[fluent-nhib] Re: Many2Many table mapping is not correct

2009-02-04 Thread James Gregory
No problem, I actually encountered this while writing some recent documentation. If you're interested as to a reason why this is more difficult to fix than it may seem: our mappings are currently completely separate, and for things like collections only the types of the properties are analysed, not

[fluent-nhib] Re: Many2Many table mapping is not correct

2009-02-04 Thread James Gregory
Yep, this is a known bug. Until we fix it you need to explicitly specify the table name for both sides of the relationship. On Wed, Feb 4, 2009 at 10:42 PM, wrote: > > I have exactly the same issue ... something seems to be not correct. > > I think on one side there should be inverse="true" whic

[fluent-nhib] Re: Many2Many table mapping is not correct

2009-02-04 Thread mblotny
I have exactly the same issue ... something seems to be not correct. I think on one side there should be inverse="true" which fluent-nh should use to detect real parent -- Cheers, Marek On 9 Gru 2008, 06:13, karron wrote: > I configure the ManyToMany table name as the following. > > persistenc

[fluent-nhib] New official website

2009-02-04 Thread James Gregory
Guys, I've also blogged about this here , but there's now an official website for Fluent NHibernate. I'd appreciate it if anyone who links or refers anyone to us could use the new address: http://fluentnhibernate.org Googlecode is still being used for it's repository hosting, bu

[fluent-nhib] Re: Public CI Box?

2009-02-04 Thread James Gregory
There is not. I actually had the plan to have a CI server generate binaries for the website too, just need to find a CI server. I believe once upon a time James Avery contacted me about getting something setup, but nothing came to fruition. On Wed, Feb 4, 2009 at 3:37 PM, Steven Harman wrote: >

[fluent-nhib] Re: XML manipulation in FNH

2009-02-04 Thread James Gregory
You get that exception when then ordering is incorrect in the XML, this sounds like a bug. The idea of a model between the mapping and XML is one we're already in the process of tackling, Paul Batum is working feverishly at it. On Wed, Feb 4, 2009 at 9:26 PM, mcintyre321 wrote: > > I've just had

[fluent-nhib] Someone blogged some nice examples

2009-02-04 Thread Erik van Brakel
Here: http://msmvps.com/blogs/luisabreu/archive/2008/10/24/using-the-new-fluent-nhibernate-project.aspx Maybe we can link that somewhere in the docs/wiki? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Fluent NHi

[fluent-nhib] Public CI Box?

2009-02-04 Thread Steven Harman
All, Is there a public CI build running for Fluent NHibernate? I know NHibernate proper is running over at CodeBetter, but I was just thinking that it would be nice to have a public build server for FNH as well. And aside from the transparency of a public CI box, I'd also like it for more selfish r

[fluent-nhib] XML manipulation in FNH

2009-02-04 Thread mcintyre321
I've just had an error while trying to automap some inheritance. "The element 'class' in namespace 'urn:nhibernate-mapping-2.2' has invalid child element 'joined-subclass'" I may be barking slightly up the wrong tree about how the guts of FluentNH work, but it looks to me like FNH builds up a vir

[fluent-nhib] Help with AutoMapping Generic Base Types

2009-02-04 Thread Jimit
Say you've got a base entity EntityBase which has properties you don't want to map. You'd have to ignore those properties on every subclass (every TEntity). If ITypeConvention allowed access to the automap you could call IgnoreProperty on all types whose base type can be cast to EntityBase<,>. I'

[fluent-nhib] Re: Fluent NHibernate without lambda statements?

2009-02-04 Thread James Gregory
VB does have lambda statements, just not lambda blocks. Which means you are able to use the property mappings, just not the more complex ones. Until VB supports lambda blocks, we don't support VB. However, if you really want to use FNH with VB, and you're willing to put up with a bit of ugliness y

[fluent-nhib] Fluent NHibernate without lambda statements?

2009-02-04 Thread Benjamin Geiger
Due to managerial fiat, I am forced to write in VB.NET. VB.NET does not have lambda statements (as of VS 2008). Many examples of FNH mappings seem to require lambda statements (particularly when involving components). Is there an alternate syntax for these, suitable for use in VB.NET? --~--~--

[fluent-nhib] Re: ClassMap Generator?

2009-02-04 Thread James Gregory
Yeah, good point by Chris. Fluent NHibernate doesn't have to be an all-or-nothing affair, you can replace your entities bit-by-bit with FNH and it'll be happy; it might also be worth considering just writing new mappings with FNH until everyone is familiar enough with it to port the rest of your ma

[fluent-nhib] Re: ClassMap Generator?

2009-02-04 Thread Chris Marisic
Also don't forget you can use any combination of HBM, Mapping and Automapping! On Feb 3, 10:13 pm, bbehrens wrote: > I was wondering if any of the project owners would like to have a > ClassMap generator.  The idea is you take existing .hbm files and > it creates the ClassMaps for you.  Exactly

[fluent-nhib] Re: Urgence:How to map this situation?

2009-02-04 Thread James Gregory
Care to share what the exception is? On Wed, Feb 4, 2009 at 9:10 AM, Levin wrote: > > Well,the where clause works nicely,but there's a strange issue... > I do as below in my PostMap class,it throws exception in my unit test >public PostMap() { >... > HasMany(x=>x.

[fluent-nhib] Re: Urgence:How to map this situation?

2009-02-04 Thread Levin
Well,the where clause works nicely,but there's a strange issue... I do as below in my PostMap class,it throws exception in my unit test public PostMap() { ... HasMany(x=>x.Comments) .WithKeyColumn("ObjID") .Where(x => x.ObjType == Com

[fluent-nhib] Re: ClassMap Generator?

2009-02-04 Thread James Gregory
I agree with Paul, our codebase changes way too rapidly to build a tool so dependent on it. Maybe when things stabilise and we enter into a regular release cycle then it might be achievable, but that isn't going to be for a while yet. I'd definitely suggest using automapping if at all possible. On

[fluent-nhib] Re: ClassMap Generator?

2009-02-04 Thread Paul Batum
I like the idea of a tool that will generate class maps based on hbm xml, but I suspect that the significant amount of change that our API is currently undergoing is a barrier. Keeping the tool up to date could be quite a burden. Have you already ruled out automapping? On Wed, Feb 4, 2009 at 2:13

[fluent-nhib] Re: composite id automapping

2009-02-04 Thread c24chan
Thanks for the replies. I guess there are no sliver bullet to create a OR/M using NHibernate with a legacy database. I am trying to sell NHibernate to my boss and co-worker, do you guys know if there are any quick way to generate at less the domain objects? On Feb 3, 6:01 pm, Chris Marisic wro

[fluent-nhib] ClassMap Generator?

2009-02-04 Thread bbehrens
I was wondering if any of the project owners would like to have a ClassMap generator. The idea is you take existing .hbm files and it creates the ClassMaps for you. Exactly like you can go from ClassMap files to .hbm files. I've been looking hard at FNH for the past week or so. I showed it to