[fluent-nhib] Re: JoinedSubClassPart and foreign key name

2009-07-05 Thread Asbjørn Ulsberg
Ok. How about automapping the inheritance scheme I proposed, then? Is that possible? Entity (abstract, non-mapped class) -> Node (concrete, mapped class) -> SpecificNode (concrete, mapped class) Explicit mapping of this with JoinedSubClass seems to work perfectly, but automapping i

[fluent-nhib] Re: JoinedSubClassPart and foreign key name

2009-07-05 Thread Paul Batum
Unfortunately its not supported at the moment. 2009/7/2 Asbjørn Ulsberg > > How do I control the naming of an FK generated in a JoinedSubClassPart > mapping? As the ID column is being configured through the argument to > the base constructor, I don't see a way to affect the naming of the > FK, s

[fluent-nhib] Re: JoinedSubClassPart

2009-03-12 Thread BringerOD
James, Ahh . . I see what you are saying. Thanks for clarifying. Do you know why they do it that way? Why that decision was made by NHiberante? On Mar 12, 4:38 pm, James Gregory wrote: > *Craig:* I've copied the examples you've given and I can't replicate your > issue, if I insert 3 records

[fluent-nhib] Re: JoinedSubClassPart

2009-03-12 Thread Craig van Nieuwkerk
Here is some more info. My table schema is * Person Table Id - PK Name varchar * Author Table Id - PK Country varchar * Borrower Table Id - PK User_Name varchar My nHibernate query is List result = Session.CreateQuery("FROM Author a ORDER BY a.Name").List() as List; If you got it to work ca

[fluent-nhib] Re: JoinedSubClassPart

2009-03-12 Thread James Gregory
*Craig:* I've copied the examples you've given and I can't replicate your issue, if I insert 3 records (1 person, 1 author, 1 borrower) and do a query on authors, I only get one record. I need more details if I'm going to be able to help you. Are you generating your schema? How are you saving your

[fluent-nhib] Re: JoinedSubClassPart

2009-03-12 Thread Craig van Nieuwkerk
No, I haven't tried with hbm.xml. The hbm as exported by fluent is On Fri, Mar 13, 2009 at 8:52 AM, James Gr

[fluent-nhib] Re: JoinedSubClassPart

2009-03-12 Thread James Gregory
Have you got a working design using hbm.xml? If so then I can use that to debug FNH, if not, then I don't know if it's a problem with your particular setup or FNH in general. On Thu, Mar 12, 2009 at 9:00 PM, Craig van Nieuwkerk wrote: > > Thanks. It seems to be a pretty basic requirement for DDD t

[fluent-nhib] Re: JoinedSubClassPart

2009-03-12 Thread Craig van Nieuwkerk
Thanks. It seems to be a pretty basic requirement for DDD to support this but maybe not, and maybe no one has any idea about it. On Fri, Mar 13, 2009 at 1:55 AM, BringerOD wrote: > > I have asked this very question before. > > http://groups.google.com/group/fluent-nhibernate/browse_thread/thread

[fluent-nhib] Re: JoinedSubClassPart

2009-03-12 Thread BringerOD
I have asked this very question before. http://groups.google.com/group/fluent-nhibernate/browse_thread/thread/902ffa065f320aa2/d391d4318945f257?hl=en&lnk=gst&q=JoinedSubClass#d391d4318945f257 I prefer to map the tables the way you are suggesting in this post. I still have no answer to this. Wh