Oracle left-outer-join syntax shorthand notation (+) available in HQL?

Andy_Lima

In Oracle there is the operator (+), to make an outer join, in a where construct e.g. SELECT * FROM table t, other_table ot WHERE t.id = ot.tale_id(+), is there a similar comfortable way, to do that in a HQL?

SUPPLEMENT: Or is there any other way to make the where condition an outer join?

StuartLC

Is there any way to specify a left outer join in HQL?

Yes, HQL does support left outer joins via explicit join syntax, and the syntax is identical to SQL's (with the implied navigation property as the join key):

from Cat as cat
    left join cat.kittens as kitten

outer is optional, viz left [outer] join

Source: HQL Query Reference

Is there a shorthand abbreviation for left outer join, like Oracle's (+)

No, AFAIK the HQL documentation makes no reference to a shorthand left outer join notation, and if HQL adheres to the trend in RDBMS to remove proprietary join syntax, as per @a_horse_with_no_name's comment, Oracle recommends against using the proprietary (+) syntax, and similarly *= in MSSql Server has been deprecated.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Oracle left-outer-join syntax shorthand notation (+) available in HQL?

From Dev

grails hql left outer join

From Dev

grails hql left outer join

From Dev

LEFT OUTER JOIN with subquery syntax

From Dev

LEFT OUTER JOIN with subquery syntax

From Dev

Syntax error on LEFT OUTER JOIN

From Dev

Old Style Oracle Outer Join Syntax - Why locate the (+) on the right side of the equals sign in a Left Outer join?

From Dev

Need help fixing the syntax for this LEFT OUTER JOIN

From Dev

'WHERE' syntax equivalent of LEFT OUTER JOIN in PostgreSQL

From Dev

'WHERE' syntax equivalent of LEFT OUTER JOIN in PostgreSQL

From Dev

ORACLE left outer join issue (with empty table?)

From Dev

oracle left outer join with two tables

From Dev

Oracle - Left outer join with where clause

From Dev

Oracle SQL left outer join on two subqueries

From Dev

HQL right outer join

From Dev

How to do a double left outer join in Linq query syntax(or fluent)

From Dev

Oracle left outer join, only want the null values

From Dev

LEFT OUTER JOIN with LIMIT

From Dev

Left Outer Join SOQL

From Dev

Outer apply and left join

From Dev

Django Left Outer Join

From Dev

LEFT OUTER JOIN problems

From Dev

Left Outer Join Issue

From Dev

LEFT (OUTER) JOIN

From Dev

Oracle, LEFT OUTER JOIN not returning all rows from left table, instead behaving like INNER JOIN

From Dev

SQL JOIN and LEFT OUTER JOIN

From Dev

Combined Left Outer Join and Full Outer Join

From Dev

Right Outer Join to Left Outer join

From Dev

Using inner join, left outer join, cross apply get syntax error with Where Clause