I am trying to use NHibernate to persist objects using Guids for their Ids with the Oracle10g dialect and am getting the following exception: Could not determine type for: MyObject..., for columns: NHibernate.Mapping.Column(ID) (type is MappingException).
My class looks something like this:
public class MyObject
{
public virtual Guid Id { get; set; }
...
I’ve tried several variations, but my mapping XML currently looks something like:
<class name="MyObject" table="MY_OBJECT">
<id column="ID" name="Id"/>
The “ID” column in Oracle is of type RAW(16).
What am I doing wrong? I’ve tried using a custom UserType, but get the same error message. Any suggestions will be greatly appreciated.
Have you seen mapping oracle raw