-->
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: Use Inner Join With Criteria
PostPosted: Mon Mar 28, 2011 8:51 am 
Newbie

Joined: Mon Mar 28, 2011 8:38 am
Posts: 3
Location: Ahmedabad (India)
Hello Geeks

We are using
Code:
FetchMode.JOIN
in
Code:
Criteria
to fetch rows depending upon conditions.

Currently, It generates
Code:
Left Outer Join
in queries.
So, It loads many records which are not required.

We have tried with creating
Code:
createCriteria
by specifying
Code:
CriteriaSpecification.INNER_JOIN
on attribute.

Now, It still generates few
Code:
Left Outer Join
in queries.

Is there any changes which can be done at hibernate mapping level ?

_________________
Hardik Mishra
Java Developer
Ahmedabad - India


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.