AFAIK this isn't supported by NHibernate or Java Hibernate. See:

http://forums.hibernate.org/viewtopic.php?t=950689
http://opensource.atlassian.com/projects/hibernate/browse/HB-1245

On Mar 16, 4:43 pm, FMadore <[email protected]> wrote:
> Hi,
>
> For the BelongsTo attribute, there is a named parameters called
> ForeignKey which allows you to specify the name of the key so that it
> won't be renamed every time with something like FK23456262345
>
> Is there anything like that for the PrimaryKey attribute? I haven't
> found anything and every time I run CreateSchema, a new name for the
> key (not the column) is regenerated with something like
> PK__MyEntityName__ED4534
>
> Then, when I run DBDiff or a tool like that, it detects that I changed
> the names of my primary keys...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" 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/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to