Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Prop-ref not working????????  RSS feed

newbie awo
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:

<class name="UserActivity" table "UserActivity">
<id name="id" column="activity_id">




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


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


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.
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!