-->
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: Hibernate Mapping Table info (Urgent)
PostPosted: Tue Apr 05, 2005 5:52 am 
Newbie

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


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.