-->
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: Need Help with Join !!
PostPosted: Thu Aug 26, 2010 3:03 pm 
Newbie

Joined: Thu May 13, 2010 12:21 pm
Posts: 7
Hello All,

Could someone please help me with following? I have 3 tables where I am joining. I am wondering how to best write hbm and create domain object for it.

Table A
=======
ID
Severity

Table B
=========
ID
Client_Id
Section_Id


Table C
===========
Section_Id
Message

So, that would make my query join where B.ID = A.ID and B.Section_Id = C.Section_Id.

I need to populate a object that will contain following:
Severity, Message.

I believe I know how to setup .hbm however, I am little confused on whats the best way to setup domain object. Should my domain object look like -

FinalObject -
AObject a
BObject b
CObject C

and then also have all three domain objects for each table? Or should I have something like -

FinalObject -
Section_Id
Message


Please help.


Thanks,


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.