You cannot use two ids, but you can set that a property is
generated="insert" check the insert and update attributes also to see what
you need there.

Gustavo.

On Tue, Apr 21, 2009 at 2:57 PM, Ahmed Emad <[email protected]> wrote:

>
> Can i add an identity property which isn't a primary key and another
> one which is primary key?
>
> assume this case:
>
> table : User
> UserId: ( PK,Identity).
> Username:(Identity)
>
> can i map it like that:
>
> <id  name="UserId" column="UserId" type="Int64">
>        <generator class="native"/>
> </id>
>
> <id  name="Username" column="Username" type="Int64">
>        <generator class="uuid.string"/>
> </id>
>
> Will any error will occur ?
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to