Closed
Description
In the example #1234, if I add a new property to bar
dynamic-component
, a "property mapping has wrong number of columns" error is thrown.
<class name="foo">
<id type="int" name="Id">
<column name="Id"/>
<generator class="native"/>
</id>
<dynamic-component name="MyProps">
<many-to-one name="DynPointer" class="bar" property-ref="MyProps.DynValString2"/>
</dynamic-component>
</class>
<class name="bar">
<id type="int" name="Id">
<column name="Id"/>
<generator class="native"/>
</id>
<dynamic-component name="MyProps">
<property name="DynValString2" type="string" unique="1"/>
<property name="AnotherProperty" type="string" />
</dynamic-component>
</class>