Hibernate version:
1.2
Mapping documents:
[Class]
public class MyClass<T>
{
private int _id;
#region Hibernate
[Id(Name = "Id")]
[Generator(1, Class = "native")]
#endregion
public virtual int Id
{
get { return _id; }
set { _id = value; }
}
}
Debug level Hibernate log excerpt:
"Cannot create an instance of MyClass because Type.ContainsGenericParameters is true."
Please tell me that it's somehow possible to map a generic class. I understand that Hibernate is likely instantiating this under the hood, but it should be able to instantiate a generic type. Does anyone have a solution or workaround? Thanks in advance!
|