Thanks Hudson,
I saw this thread where Chris C. wrote an implementation in
November 09, but I don't see it in the trunk.
http://groups.google.com/group/fluent-nhibernate/browse_thread/thread/8c2a254c6b7bd932?fwc=1
I don't know where this ever ended up. Is there any other work around
for this? I really don't want to create mappings for all my tables by
hand just to specify the PKs.
On Jan 18, 2:03 pm, Hudson Akridge <[email protected]> wrote:
> I could be wrong, but I don't believe automapping supports composite Id's.
> At least I've never seen an example with that working. Id is the default
> choice when automapper fires, which is probably why there's not an
> automapping convention for compositeId.
>
> Someone else might come along and correct me though.
>
>
>
> On Mon, Jan 18, 2010 at 1:23 PM, Corey Coogan <[email protected]> wrote:
> > I am trying to figure out a solution to using a convention for
> > defining my composite key with AutoMapping. I've read some stuff but
> > haven't found anything concrete. Almost all of my entities have a
> > composite key that consists of a string and a date.
>
> > We have a code generator that is converting our Oracle DB tables into
> > entities. I'm using custom attributes to decorate the entity with the
> > following info:
>
> > - TableName - tells the class convention what table it maps to
> > - Primary Keys - should tell some convention what the primary key
> > columns are
> > - Column Name - tells the Property convention what column the property
> > maps to
>
> > Since the entities are generated straight from the DB, I was hoping to
> > rely on Automapping and conventions to avoid any manual mapping. I
> > see the IdConvention, but I'm not sure if that will work for Composite-
> > Id. The only code I see is something that was written to a fork but
> > apparently never committed.
>
> > Any ideas how to do this?
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Fluent NHibernate" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected]<fluent-nhibernate%[email protected]>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/fluent-nhibernate?hl=en.
>
> --
> - Hudsonhttp://www.bestguesstheory.comhttp://twitter.com/HudsonAkridge
--
You received this message because you are subscribed to the Google Groups
"Fluent NHibernate" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/fluent-nhibernate?hl=en.