My error message:
NHibernate.MappingException : broken column mapping for: ItemDetails.id of: NHibReg.Domain.RegDetail, type Int32 expects 1 columns, but 2 were mapped
I get this when I try to get a RegDetail row: How can I solve this?
Here is the RegDetail MAP:
<class name="RegDetail" table="******">
<composite-id>
<key-property name="RegistryNum" column="****" type="int"/>
<key-property name="Sku" column="****" type="int"/>
</composite-id>
<property name="QtyRequested" column="****" type="int"/>
<one-to-one name="ItemDetails" class="Item"/>
</class>
Here is the Item MAP:
<class name="Item" table="Items">
<id name="Sku" column="SKU" type="int"/>
<property name="StyleDescrip" column="*****" type="String"/>
</class>