[ http://216.121.112.228/browse/NH-2783?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Christophe updated NH-2783:
---------------------------
Attachment: mapping.hbm.xml
bar.cs
foo.cs
> property-ref and dynamic-component
> ----------------------------------
>
> Key: NH-2783
> URL: http://216.121.112.228/browse/NH-2783
> Project: NHibernate
> Issue Type: Bug
> Components: Core
> Affects Versions: 3.1.0
> Reporter: Christophe
> Priority: Major
> Attachments: bar.cs, foo.cs, mapping.hbm.xml
>
>
> Many-to-one association that references a dynamic-component property throws an error "property-ref [DynValString2] not found on entity [NHibernateTest.bar]"
> Mapping used :
> <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="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"/>
> </dynamic-component>
> </class>
> If I move property DynValString2 out of the dynamic-component, it works.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
|