I'm fairly new to NHibernate and even more so to Fluent NHibernate, so 
forgive such a basic question.

I have a IUserType defined class and I want to use it as an Id of a table. 
When using Native generator I get an exception

InnerException: System.InvalidOperationException
    Message=Identity type must be integral (int, long, uint, ulong)
    Source=FluentNHibernate

Here is a snipped of my object definition: 


class ObjectIdType: IUserType
{
    private static readonly NHibernate.SqlTypes.SqlType[] SQL_TYPES = { 
NHibernateUtil.UInt64.SqlType };

    public NHibernate.SqlTypes.SqlType[] SqlTypes
    {
        get { return SQL_TYPES; }
    }

    public Type ReturnedType
    {
        get { return typeof(ObjectId); }
    }

    ...
}

Is it possible to have a user type as an Id of the column where the Id is 
not an integer value?

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/fluent-nhibernate/-/w60YqTL1KgcJ.
To post to this group, send email to fluent-nhibernate@googlegroups.com.
To unsubscribe from this group, send email to 
fluent-nhibernate+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/fluent-nhibernate?hl=en.

Reply via email to