You could try this
<id name="Id" unsaved-value="0">
<column name="Id" index="PK_Primary"/>
<generator class="increment" />
</id>
It works but creates an index besides the primary key
Greetings
On 27 jul, 18:39, Jan Limpens <[email protected]> wrote:
> 2009/7/27 Nexus <[email protected]>
>
>
>
> > <id name="Id" column="Id" unsaved-value="0">
> > <generator class="native"/>
> > </id>
>
> > Is is not the column="Id" ?
>
> No, not the column name, the name of the Primary Key ("PK_Something")
>
> > On 26 jul, 21:52, James Gregory <[email protected]> wrote:
> > > AFAIK you can't set the primary key name. Foreign keys yes, primary no.
>
> I am getting this feeling, I might have to hack into these sys.objects
> tables...
>
> --
> Jan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"nhusers" 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/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---