Hibernate version: 1.2.0.2001
Hi,
I have a problem ...
I have one base class and 2 classes who inherit from this class.
Now this base class is this:
Code:
public class Category<ParentType>
where ParentType : Category<ParentType>
{
private Guid m_id;
private ParentType m_parentCategory;
private string m_name;
private string m_description;
#region Category Properties
#region Category Constructors
}
}
My other 2 classes:
public class UnitCategory : Category<UnitCategory>
public class StockItemCategory : Category<StockItemCategory>
As you can see there is a generic type that has to be given when creating it.
Now there is a problem when mapping this file..
Now I have this:
<class name="Category'1[???]" table="Categories">
What do I have to insert in place of the question marks?? Otherwise it can not map the file, which is logic.
Can anyone help me??
Thanks in advance...