Joined: Tue Apr 05, 2005 5:39 am Posts: 6 Location: Stuttgart, Germany
|
Hi All,
For my current project I am using hibernate 2.1.* . I am in the need of an information. I have a mapping file from which I am displaying a section below:
<set
name="roles"
table="user_data_roles"
cascade="none"
lazy="true"
sort="natural"
>
<key column="user_id"/>
<many-to-many column="role_id" class="com.bosch.mds.auth.Role"/>
</set>
Now from above we can see that the "set" represents a "many-to-many" relationship. In my code, from the hibernate "Configuration" I have got the "PersistenseClass" and I am able to iterate through all the properties from the "PersistenseClass". Now my question is how will I find out (using what api) that a particular property is of type "many-to-many" or "one-to-many".
Please help me as early as possible..
Thanks in Advance,
Suvankar
|
|