-->
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.  [ 3 posts ] 
Author Message
 Post subject: To fetch rec from MappedTable using Criteria Qry(immediate)
PostPosted: Fri Dec 15, 2006 1:01 pm 
Newbie

Joined: Fri Dec 15, 2006 12:26 pm
Posts: 8
I have two tables Table A and Table B which have an Mapped Table MAB

structure of table A

id int pk
serialno int


Table B

id int pk
name string

Table MAB

aPk int
bPk int


Now i have to fetch the records from table MAB for all aPk associated with bPk

say

5 aPk are there for on bPk all 5 records shud be feltch.

Please help me to know hoe we can do this in hibernate


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 15, 2006 1:08 pm 
Newbie

Joined: Fri Dec 15, 2006 12:26 pm
Posts: 8
the MAB do not have any .hbm.xml


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 15, 2006 2:43 pm 
Newbie

Joined: Wed Dec 13, 2006 3:34 pm
Posts: 4
I am looking for the same functionality using Criteria but didnt find anything in the document. Anyone pls..


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

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.