Thanks !
On 10 mar, 15:40, Germán Schuager <[email protected]> wrote:
> <generator class="assigned" />
>
> On Tue, Mar 10, 2009 at 12:36 PM, graphicsxp <[email protected]>wrote:
>
>
>
> > Hi,
>
> > I have a table with no identity column, how do I do that in my mapping
> > file ?
>
> > I've tried :
>
> > <class name="DataTransfer.MetUser, DataTransfer" table="MetUser"
> > lazy="true">
> > <property name="PersonID" column="PersonID" type="Int32" not-
> > null="true" />
> > </class>
>
> > but it doesn't like it so I tried :
>
> > <class name="DataTransfer.MetUser, DataTransfer" table="MetUser"
> > lazy="true">
> > <id name="PersonID" column="PersonID" type="Int32" >
> > <generator class="native" />
> > </id>
> > </class>
>
> > however class="native" means its going to generate the value and I
> > don't want that....
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---