Hibernate version:1.0.3
Hi,
I had a working Nhibernate mapping, all was nice until i tried to use WCF.
Everythings work well ( update, delete, getlist, ...)
as long as i don't try to get an objet with an Iesi.Collections.ISet defined inside.
I've first tried to declare a DataContract and used another type than Iesi.Collections.ISet. This was working without WCF, or with WCF if my return object have an empty Iesi.Collections.ISet.
my object is :
Code:
[Serializable()]
[NHibernate.Mapping.Attributes.Class(Table = "TableTest")]
public class TableTest {
private string _idTableTest = "";
[NHibernate.Mapping.Attributes.Id(0, Name = "IdTableTest")]
[NHibernate.Mapping.Attributes.Generator(1, Class = "uuid.hex")]
[NHibernate.Mapping.Attributes.Set(2, Table = "lnkTableTestTableTest2", Name = "TableTest2Set")]
[NHibernate.Mapping.Attributes.Key(3, Column = "IdTableTest")]
[NHibernate.Mapping.Attributes.ManyToMany(4, Class = "xxx.Entities.TableTest2, xxx", Column = "IdTableTest2")]
public string IdTableTest
{
get
{
return _idTableTest;
}
set
{
_idTableTest = value;
}
}
private Iesi.Collections.ISet _tableTest2Set;
public virtual Iesi.Collections.ISet TableTest2Set
{
get
{
return this._tableTest2Set;
}
set
{
this._tableTest2Set = value;
}
}
If anyone have somes clues about solve this problem,
Thanks in advance.