Thank you very much for you reply borak. Although I have no doubt what you say works, I've just found another solution to my problem.
The mapping I've done is:
Code:
<set
name="setOfSubscription"
table="CORE_SUBSCRIPTION"
lazy="false"
inverse="true"
cascade="none"
sort="unsorted"
>
<key
column="THIRD_PARTY_ID"
>
</key>
<element
column="USER_ID"
type="java.lang.Long"
length="10"
not-null="true"
unique="true"
/>
</set>
Thank you very much for the time you've spent in solving my problem. Really thanks!!
:)