ORA-00932: inconsistent datatypes: expected NUMBER got BINARY
Mon, 21 Sep 2009 12:46:20 +0000
I got the following error:
ORA-00932: inconsistent datatypes: expected NUMBER got BINARY
on line:
<property name="customer" column="CustomerId" />
the fix for above error was to use many-to-many tag instead of plain <property>:
<many-to-one name="customer" column="CustomerId" />
Note that class is not required here - it's computed from return type of getCustomer() getter by reflection.