-->
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.  [ 4 posts ] 
Author Message
 Post subject: Problem with hibernate.use_outer_join
PostPosted: Wed Mar 10, 2004 12:15 am 
Beginner
Beginner

Joined: Wed Oct 01, 2003 11:01 pm
Posts: 23
Hi all...

When I specify hibernate.use_outer_join=false, does this mean that Hibernate will never generate a SQL query that uses outer joins? If so, this doesn't seem to be working for Hibernate 2.1.2 against Oracle when using joined-subclass and attempting to retrieve a set of these subclasses based on a superclass.

For example, if I have FooA and FooB which extends FooBase, and I have another object Bar that has a set of FooBase objects, attempting to iterate through this set produces SQL that uses outer joins.

Is this the expected behavior?

Do most people enable outer joins fetching? Is there a set of general guidelines when you would and would not enable it?


Thanks,
-Mark


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 10, 2004 12:22 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
This is expected. That (deprecated) setting affects only association fetching.


Top
 Profile  
 
 Post subject: Deprecated?
PostPosted: Thu Mar 11, 2004 2:50 pm 
Beginner
Beginner

Joined: Wed Oct 01, 2003 11:01 pm
Posts: 23
Gavin,

Why is the setting deprecated? This is not mentioned in the docs btw.

Is there something replacing it? And if not, what's the default behavior?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 11, 2004 2:53 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Have a look at max_fetch_depth. Setting this to 0 turns outer join fetching (used only for many-to-one and one-to-one) off.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.