[fluent-nhib] Re: Multiple Inheritance strategies in the same hierarchy

2009-04-02 Thread Hudson Akridge
Patched in revision 441 and closed out your issue. Thanks for the patch Martin :) On Thu, Apr 2, 2009 at 10:48 AM, James Gregory wrote: > > Im not in a position to apply anything until Sunday, but if nobody > else has done it by then I'll apply it. > > On 4/2/09, Martin Hornagold wrote: > > > >

[fluent-nhib] Re: Bidirectional association is causing NHibernate to Update before Delete?

2009-04-02 Thread Hudson Akridge
Oh man, my copy/paste from the doc got fubared. Here it is, for real ;) (check out those chapters I mentioned though, they'll help you get more fine grained control) Very Important Note: If the column of a association is declared NOT NULL, NHibernate may cause constraint violations when it creat

[fluent-nhib] Re: Bidirectional association is causing NHibernate to Update before Delete?

2009-04-02 Thread Hudson Akridge
Declare the AdminMap HasMany as Inverse. For more details, check out chapter 6.4 and 6.8 in the NHibernate docs: From the Doc - May cause constraint violations when it creates or updates the association. To prevent this problem, use a bidirectional association discussion of bidirectional associat

[fluent-nhib] How to map IList as List in automapping?

2009-04-02 Thread Karron Qiu
There isn't a AsList() api in conversation. -- Regards, Karron --~--~-~--~~~---~--~~ 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 un

[fluent-nhib] Re: Multiple Inheritance strategies in the same hierarchy

2009-04-02 Thread James Gregory
Im not in a position to apply anything until Sunday, but if nobody else has done it by then I'll apply it. On 4/2/09, Martin Hornagold wrote: > > Previous patch was incomplete. > I have updated the issue and the patch: > http://code.google.com/p/fluent-nhibernate/issues/detail?id=179 > > > > >

[fluent-nhib] Re: Version and Discriminator not ordering correctly

2009-04-02 Thread depaulo
It works now. Thanks. On Apr 2, 2:22 pm, Hudson Akridge wrote: > This should have been resolved in revision 434. Please let me know if you > still experience the problem after doing an update to the current > revision :) > > On Thu, Apr 2, 2009 at 5:49 AM, depaulo wrote: > > > > >http://code.g

[fluent-nhib] Re: Adding FindAll() and Query() to IRepository?

2009-04-02 Thread Jon Kruger
There's an IRepository in Fluent NHibernate too. On Thu, Apr 2, 2009 at 11:06 AM, Martin Hornagold < martin.hornag...@marstangroup.com> wrote: > > Jon, > > I think you've got your frameworks mixed up. > IRepository is in S#arpArch :) > > -Original Message- > From: fluent-nhibernate@google

[fluent-nhib] Re: Adding FindAll() and Query() to IRepository?

2009-04-02 Thread Martin Hornagold
Jon, I think you've got your frameworks mixed up. IRepository is in S#arpArch :) -Original Message- From: fluent-nhibernate@googlegroups.com [mailto:fluent-nhibern...@googlegroups.com] On Behalf Of Jon Kruger Sent: 02 April 2009 16:04 To: Fluent NHibernate Subject: [fluent-nhib] Adding F

[fluent-nhib] Adding FindAll() and Query() to IRepository?

2009-04-02 Thread Jon Kruger
On my project, I ended up creating my own interface that derives from IRepository because I wanted two more methods: IList FindAll() where T : Entity; IQueryable Query(); // returns the entire list as IQueryable Anyone else doing this? Anyone see value in adding to the IReposito

[fluent-nhib] Re: NHibernate Table Update Event

2009-04-02 Thread Jon Kruger
I replied to your question on Stack Overflow. Jon On Thu, Apr 2, 2009 at 9:17 AM, Rob Tennyson wrote: > > I wonder if one of you might be able to help me out. You can see my > original question here: http://stackoverflow.com/questions/705943 > > The main thing I need to figure out is whether o

[fluent-nhib] Re: Version and Discriminator not ordering correctly

2009-04-02 Thread Hudson Akridge
This should have been resolved in revision 434. Please let me know if you still experience the problem after doing an update to the current revision :) On Thu, Apr 2, 2009 at 5:49 AM, depaulo wrote: > > http://code.google.com/p/fluent-nhibernate/issues/detail?id=95 > > The notes in the issue say

[fluent-nhib] NHibernate Table Update Event

2009-04-02 Thread Rob Tennyson
I wonder if one of you might be able to help me out. You can see my original question here: http://stackoverflow.com/questions/705943 The main thing I need to figure out is whether or not an insert or update happened on a particular table. Unfortunately this is an inherited database and the aud

[fluent-nhib] Re: Multiple Inheritance strategies in the same hierarchy

2009-04-02 Thread Martin Hornagold
Previous patch was incomplete. I have updated the issue and the patch: http://code.google.com/p/fluent-nhibernate/issues/detail?id=179 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To po

[fluent-nhib] Version and Discriminator not ordering correctly

2009-04-02 Thread depaulo
http://code.google.com/p/fluent-nhibernate/issues/detail?id=95 The notes in the issue say that you couldnt replicate this. Just to let you know, I have posted in there the code to replicate it and have put a (rough) fix in too. If the fix (or a more thorough version) could be added to trunk that

[fluent-nhib] Re: AutoMap many-to-many table name

2009-04-02 Thread Karron Qiu
Yes, you are right. I understood your design. On Thu, Apr 2, 2009 at 5:16 PM, Karron Qiu wrote: > In my opinion, conversation is more general and high level than automapping > alteration. It's defferent with fluent mapping. > > when I choose auto mapping, it means I don't want to write mappings,

[fluent-nhib] Re: Multiple Inheritance strategies in the same hierarchy

2009-04-02 Thread Martin Hornagold
James, I have added an issue with a patch to fix: http://code.google.com/p/fluent-nhibernate/issues/detail?id=179 I would be grateful if you could consider adding it to the trunk. Martin -Original Message- From: fluent-nhibernate@googlegroups.com [mailto:fluent-nhibern...@googlegroups.

[fluent-nhib] Re: PersistenceSpecification question

2009-04-02 Thread depaulo
Sorry to butt in but is it something to do with the .WithColumns("ProjectID"); in References(x => x.Project).Cascade.All().WithForeignKey ("ProjectID").WithColumns("ProjectID"); I have just found that if I have a ParentID property in my Child object and then use References(x => x.Parent, "Pare

[fluent-nhib] Re: AutoMap many-to-many table name

2009-04-02 Thread Karron Qiu
In my opinion, conversation is more general and high level than automapping alteration. It's defferent with fluent mapping. when I choose auto mapping, it means I don't want to write mappings, If I want to alter some in general, I create some conversations for all entities. but because auto mappin

[fluent-nhib] Multiple Inheritance strategies in the same

2009-04-02 Thread Martin
James, I have come a cropper with inheritance auto mapping in my project. I have the following hierarchy: BaseEntity | ConcreteSuperClass | ConcreteSubClass I need ConcreteSubClass to map to its own table. I do not want any form of subclass joined subclass or union. But if I set Concret

[fluent-nhib] Re: AutoMap many-to-many table name

2009-04-02 Thread James Gregory
Not possible. If you were to create a HasManyToMany covention, how would it be applied to the HasManyToMany from your override if the conventions were run first? Overrides can alter the mapping, so conventions have to be applied last to accomodate for those potential changes. On 4/2/09, Karron Q

[fluent-nhib] Re: AutoMap many-to-many table name

2009-04-02 Thread Karron Qiu
I knew what is the problem. Because I wrote a HasManyToManyConversation that set the table name, it overrided the EmployeeMap and TerritoryMap. I think this behavor is not correct, the priority of IAutoMappingOverride should higher than the conversation. On Thu, Apr 2, 2009 at 2:59 PM, Karron Qiu

[fluent-nhib] Re: AutoMap many-to-many table name

2009-04-02 Thread Karron Qiu
I tried IAutoMappingOverride, but very strange, it doesn't work. here are my mappings. I specified a table name for the relationship table. but fluent nhibernate still generated two tables for me. public class EmployeeMap : IAutoMappingOverride { public void Override(AutoMap mapping)