Re: [fluent-nhib] CompositeId - Is it possible to Map a Column to a KeyProperty and to a Reference?

2011-01-18 Thread James Crowley
Regards > > Christan Erhardt > > -- > 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 unsubscribe from this group, send email to >

Re: [fluent-nhib] Disabling backtick field name escaping?

2010-03-24 Thread James Crowley
> On Wed, Mar 24, 2010 at 5:55 PM, James Crowley wrote: > >> Hi guys, >> >> Is there a way to disable the backtick field name escaping, and has this >> behaviour changed at all recently? >> >> Fluent NHibernate is generating mappings like this: >> &

[fluent-nhib] Disabling backtick field name escaping?

2010-03-24 Thread James Crowley
Hi guys, Is there a way to disable the backtick field name escaping, and has this behaviour changed at all recently? Fluent NHibernate is generating mappings like this: which seem to cause issues when using named queries in the trunk version of nHibernate. If I export the fluen

[fluent-nhib] Re: No Cascade Delete-Orphan option? (with code submission)

2009-09-05 Thread James Crowley
t reveal much. Can you explain what the >> difference is between delete-orphan and all-delete-orphan? >> >> Thanks, >> >> Paul Batum >> >> On Sat, Sep 5, 2009 at 3:57 AM, James Crowley >> wrote: >>> >>> Just

[fluent-nhib] Re: No Cascade Delete-Orphan option? (with code submission)

2009-09-04 Thread James Crowley
Just added public TParent DeleteOrphan() { setter("delete-orphan"); return parent; } to "Mapping/CollectionCascadeExpression.cs" and everything appears to work great. Would someone mind adding it to the code base if they agree? Thanks James --~-

[fluent-nhib] Re: No Cascade Delete-Orphan option?

2009-09-04 Thread James Crowley
t;> 2.2 and this happens: [MappingException: Unsupported cascade style: >> delete-orphans]" >> (here: >> http://stackoverflow.com/questions/444753/how-do-i-make-nhibernate-delete-child-refererences-when-i-delete-a-parent)

[fluent-nhib] Re: No Cascade Delete-Orphan option?

2009-09-04 Thread James Crowley
scade and didn't tell anyone but I'd have to check the NH source to > find out. > > On Fri, Sep 4, 2009 at 10:05 AM, James Crowley wrote: >> >> Hmm, I'm even more confused now! >> >> Ayende makes reference to this way back in 2006: >> >> http:/

[fluent-nhib] Re: No Cascade Delete-Orphan option?

2009-09-04 Thread James Crowley
d in nhibernate it's >> not going to be supported in Fluent either. >> >> On Fri, Sep 4, 2009 at 10:07 AM, James Crowley >> wrote: >>> >>> Hi Mikael, >>> >>> thanks for the response. Unfortunately, that's the "all-delete-or

[fluent-nhib] Re: No Cascade Delete-Orphan option?

2009-09-04 Thread James Crowley
e this? Many thanks, James 2009/9/3 Mikael Henriksson : > .I believe what you are looking for is Cascade.AllDeleteOrphan() > > On Thu, Sep 3, 2009 at 11:10 PM, James Crowley > wrote: >> >> I'm probably missing something blindingly obvious here, but is there >> a

[fluent-nhib] No Cascade Delete-Orphan option?

2009-09-03 Thread James Crowley
I'm probably missing something blindingly obvious here, but is there any reason why there is no delete-orphan option when setting the cascade types? Thanks James --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Flu

[fluent-nhib] Re: Fluent NHibernate 1.0 RTM

2009-08-31 Thread James Crowley
congrats James - great stuff!! 2009/8/29 James Gregory > We've made it, Fluent NHibernate is now at 1.0. > You can read the announcement over at > NHForge<http://nhforge.org/blogs/nhibernate/archive/2009/08/29/fluent-nhibernate-1-0.aspx> > . > > > >

[fluent-nhib] Where filter with Enum

2009-08-28 Thread James Crowley
ion(); } Honestly, I don't know the further implications of this, but it seems to work fine for Enums anyway! James -- James Crowley Managing Director Developer Fusion - Connecting developers worldwide Developer Fusion Ltd | 58 Sandringham Close | Enfield, EN1 3JH mob: 07986 62412

[fluent-nhib] Re: WithTable (for multi-table entity) and non-PK join columns

2009-07-07 Thread James Crowley
ation over to Projects. > > > On Mon, Jul 6, 2009 at 10:47 AM, James Crowley wrote: > >> Hi guys, >> Is there any way to join on a column other than the primary key, using >> WithTable (or any other command I've missed?). >> >> My mapping (for a read-onl

[fluent-nhib] WithTable (for multi-table entity) and non-PK join columns

2009-07-06 Thread James Crowley
Hi guys, Is there any way to join on a column other than the primary key, using WithTable (or any other command I've missed?). My mapping (for a read-only view) looks something like this: WithTable("Releases"); Id(x => x.Id, "ReleaseId"); Map(x => x.ProjectId, "ProjectId"); WithTable("Project", t

[fluent-nhib] Re: combining automapping and fluent mapping

2009-06-19 Thread James Crowley
FNH right now. It's a similar reason to why you can't create >> a separate: ClassMap then a ClassMap, >> ClassMap mappings. All inheritance mapping needs to be done >> within one ClassMap (the base class one). >> We're looking to change that, but it'll be a bit.

[fluent-nhib] combining automapping and fluent mapping

2009-06-18 Thread James Crowley
At the moment I'm using fluent mapping (rather than auto mapping) due to a bunch of legacy tables in my schema. However, I've now got a scenario where I need to map a bunch of classes in an table-per-hierarchy inheritance (with a discriminator column) and ideally I'd like to auto-map these. Is th

[fluent-nhib] no "property-ref" on HasMany... any work arounds?

2009-05-05 Thread James Crowley
Hey, I've just come across the fact that there's no way to specify "property-ref" on a HasMany relation (so I can point the one-to-many to a non-primary key field on the parent entity), as described in this bug report: http://code.google.com/p/fluent-nhibernate/issues/detail?id=207 Just wonderin

[fluent-nhib] Re: Mapping a collection of enums (stored as string rather than int) - possible?

2009-03-20 Thread James Crowley
the type would do the trick. Are you interested in having a go at this > yourself? Patches are always welcome :) > > Paul Batum > > On Thu, Mar 19, 2009 at 9:09 PM, James Crowley > wrote: > > *bump* > > > > anyone? > > > > Thanks, > > > >

[fluent-nhib] Re: Mapping a collection of enums (stored as string rather than int) - possible?

2009-03-20 Thread James Crowley
ty easy to fix - an overload for AsElement() that also takes > the type would do the trick. Are you interested in having a go at this > yourself? Patches are always welcome :) > > Paul Batum > > On Thu, Mar 19, 2009 at 9:09 PM, James Crowley > wrote:

[fluent-nhib] Re: Mapping a collection of enums (stored as string rather than int) - possible?

2009-03-19 Thread James Crowley
*bump* anyone? Thanks, 2009/3/17 James Crowley > Hi everyone, > > At the moment, I'm using the following: > > HasMany(t => t.StartingFor) > .WithTableName("df_ContentType") > .WithKeyColumn("WorkflowStageId") &

[fluent-nhib] Mapping a collection of enums (stored as string rather than int) - possible?

2009-03-17 Thread James Crowley
Hi everyone, At the moment, I'm using the following: HasMany(t => t.StartingFor) .WithTableName("df_ContentType") .WithKeyColumn("WorkflowStageId") .AsElement("Name"); To map a collection of enums to my entity, which works great when the enum is st

[fluent-nhib] Enums as part of Composite Key?

2009-02-26 Thread James Crowley
Hey, I'm getting a "An association from the table [ABC] refers to an unmapped class" error when using an enum as part of a composite key in an entity? When doing UseCompositeId() .WithKeyReference(x => x.SomeOtherKey) Map(x => x.Role, "RoleId"); /* Role is an Enum type */ This works just fi