-->
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: Problem with hbm mapping
PostPosted: Mon Mar 19, 2007 3:40 am 
Newbie

Joined: Mon Mar 19, 2007 3:27 am
Posts: 1
Hi,

I am new for hibernate. Please help me, how can i do the mappings in

Tabes structure

Status Complaint
id id
status status_id (Forigen key of Status table)
description


i have these classes

status.java, Complaint. java , status.hbm.xml, Complaint.hbm.xml

how can i get information of Complaint in my getAllComplaint() method. i am getting all complaints list with status_id not the status (open/closed). its problem of join i thing.

i am getting problem in making mappings in hbm files for forgien keys.

Please help me to get over the problem.

Thanks
Ravi

_________________
Thanks & Regards
Ravi Adha


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.