• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Prop-ref not working????????

 
newbie awo
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, I am new to Hibernate and I am using Hibernate 3.1.2 with a legacy database system. I am trying to use the <join> element:

<hibernate-mapping>
<class name="UserActivity" table "UserActivity">
<id name="id" column="activity_id">

......

</id>

......

<property name="userActivity" column="activity_type_cd" type="int"/>

......

<join table="UserRole">
<key column="role_cd" prop-ref="activity_type_cd"/>
......

</join>
</class>
</hibernate-mapping>


However, the join condition is still including
where UserRole.role_cd=UserActivity.activity_id instead of
where UserRole.role_cd=UserActivity.activity_type_cd. What should I be doing differently? Any help is greatly appreciated - thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic