You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by Jakob Braeuchi <jb...@gmx.ch> on 2006/01/19 22:47:07 UTC

OUTER JOIN when both ends of a relationship point to the same class ??

hi all,

ojb currently creates an OUTER join when both ends of a relationship 
point to the same class. with a little help form svn i found that this 
feature was introduced by myself almost three years ago:

Filename: 
db/ojb/trunk/src/java/org/apache/ojb/broker/accesslayer/sql/SqlQueryStatement.java
Revision 362001 - (view) (download) (as text) - [select for diffs]
Modified Thu Feb 6 20:38:49 2003 UTC (2 years, 11 months ago) by brj
File length: 40778 byte(s)
Diff to previous 361952 (colored)

use OUTER joins when joining with the same table

this feature was imo useful then because ojb didn't support setting the 
joint type yet. but today i think we could simply use an INNER join in 
this situation. users can force an OUTER join with setPathOuterJoin().

wdyt ?

jakob


---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Re: OUTER JOIN when both ends of a relationship point to the same class ??

Posted by Jakob Braeuchi <jb...@gmx.ch>.
hi all,

as thomas pointed out this is a substantial change in behaviour, so we'd 
better stay with the current OUTER join for ojb 1.0.x branch

for ojb 1.x trunk i changed the join type to INNER.

jakob

Jakob Braeuchi schrieb:
> hi all,
> 
> ojb currently creates an OUTER join when both ends of a relationship 
> point to the same class. with a little help form svn i found that this 
> feature was introduced by myself almost three years ago:
> 
> Filename: 
> db/ojb/trunk/src/java/org/apache/ojb/broker/accesslayer/sql/SqlQueryStatement.java 
> 
> Revision 362001 - (view) (download) (as text) - [select for diffs]
> Modified Thu Feb 6 20:38:49 2003 UTC (2 years, 11 months ago) by brj
> File length: 40778 byte(s)
> Diff to previous 361952 (colored)
> 
> use OUTER joins when joining with the same table
> 
> this feature was imo useful then because ojb didn't support setting the 
> joint type yet. but today i think we could simply use an INNER join in 
> this situation. users can force an OUTER join with setPathOuterJoin().
> 
> wdyt ?
> 
> jakob
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-dev-help@db.apache.org
> 
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org