I am accessing tables that have identifier columns defined as binary(8) (Sybase).
I am using the following .hbm.xml definition for the column:
<id name="report_id" column="report_id" type="binary" length="8"> <generator class="assigned" /> </id>
Regardless of how I try to access this (using C#), I receive the following exception:
illegal use of an array as an identifier (arrays don't reimplement equals)
When looking at the NHibernate source, it appears that any ID of type binary is rejected:
if ( id.getType().getReturnedClass().isArray() ) throw new MappingException( "illegal use of an array as an identifier (arrays don't reimplement equals)");
Is there a workaround to this?
|