-->
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 query bwt two tables.
PostPosted: Tue Sep 21, 2010 1:17 am 
Newbie

Joined: Tue Sep 21, 2010 1:09 am
Posts: 2
Hi,

I have the following schema.

TABLE A
..NAME
TABLE B
..A.ID
..NAME
TABLE C
..A.ID
..NAME

I would like to select all TABLE A NAME and display in a panel as a list.
now I have a search box that searches as the user types.
I would like to search not only for TABLE.A.NAME, but if the user types TABLE.B.NAME OR TABLE.C.NAME , and if there is a B.NAME OR C.NAME for a particular A.NAME, I would like to display A.NAME.

How would you express that in hibernate query?

Thanks for the help


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.