Hi,
I try to reference a components property in a many-to-one relationship using the property-ref element, but I always get the error, that the property would not exist. Here is an example.
<class name="Clazz">
...keys and other stuff
<component name="component1" class="Component">
<property name="componentsProperty" column="ID" unique="true" not-null="true"/>
</component>
<property name="simpleProperty" column="SIMPLE_PROP"/>
</class>
<class name="ReferencingClazz">
...keys and other stuff
<many-to-one
name="componentRole"
class="Clazz"
property-ref="component1.componentsProperty"
column="COMPONENT_ROLE" />
</class>
If I try it this way, I get the error that property component1.componentsProperty does not exist in Clazz.
If I refernce simpleProperty of Clazz, it works.
I wonder if it is possible to use a property PATH in property-ref at all.
Any ideas?
Hibernate version:3
_________________ --
Rolf
|