Hibernate version: 1.0.3
Name and version of the database you are using: MS SQL Server 2000
Hi,
i'm trying to create a mapping for a table with 2 PK.
I've tried something like that, but this doesn't work :
Code:
[NHibernate.Mapping.Attributes.Class(Table = "MaTable")]
public class MaTable {
private string _id1 ;
[NHibernate.Mapping.Attributes.Id(Name="Id1")]
[NHibernate.Mapping.Attributes.Generator(1, Class = "uuid.hex")]
public string Id1
{
get
{
return _id1 ;
}
set
{
_id1 = value;
}
}
private string _id2;
[NHibernate.Mapping.Attributes.Id(Name="Id2")]
[NHibernate.Mapping.Attributes.Generator(1, Class = "uuid.hex")]
public virtual string Id2
{
get
{
return _id2;
}
set
{
_id2= value;
}
}
}
Anybody know how to do the mapping ?
Thanks in advance.