Hi there!
I have two tables, one containing the master item and one containing versions for this item. The version table holds a reference to the master table called 'itemid'.
Within nhibernate (0.9.0.0), I created a simple collection mapping
Code:
<bag name="Versions">
<key column="itemid"/>
<one-to-many class="nhibernate_test.ItemVersion, nhibernate-test"/>
</bag>
and implemented the corresponding properties into the Item class.
When I run my program, I receive the error message that the attribute 'version0_.itemid' cannot be found. This error message is correct as the attribute is called 'itemid' instead. Why does nhibernate try to locate the attribute under the wrong name? How can I correct this or is this a known issue?
cheers,
Stephan