Avoid unnecessary joins

Description

In Jira previously there are a number of requests for this in regards to various mappings. This represents a more general handling of various requests to have Hibernate not generate joins unless they are "needed".

It leverages the new SQL AST to track when a table has been referenced and delay the creation of a TableReference until that time.

Environment

None

Activity

Show:
Nicolas Jakob
September 28, 2020, 10:29 PM

Does this also solve the issue that when querying a @OneToOne on a Joined Inheritance Root, it does only fetch the required entity from one table and not perform left joins on all other sub tables too?

Nicolas Jakob
September 28, 2020, 10:29 PM

Assignee

Steve Ebersole

Reporter

Steve Ebersole

Fix versions

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Priority

Major
Configure