-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Referencing component property in property-ref element
PostPosted: Sun Apr 10, 2005 6:44 am 
Newbie

Joined: Sun Apr 10, 2005 6:18 am
Posts: 1
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.