Skip to content

property-ref on a component's property causes "wrong number of columns" error #1824

Closed
@rbriguetto

Description

@rbriguetto

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>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions