inner join problem when use constructor in JPQL

Description

I have 2 domain classes:
'Process' and 'Account' they are keeping Many-To-One relationship which means:
Process may belongs to one Account or not belongs to any Account,
and one Account can own multi-Process.

a query in Spring Framework like

when app is running i got:

no record retrieved.

if I change to

then I got:

this(inner join) is also not I want since account may be null in process object.

is this a bug?

Environment

Spring 3.1.1

Activity

Show:
deng hui
May 5, 2012, 4:34 PM

sorry, the right join should be left join.
the issue is same.

Brett Meyer
October 14, 2013, 3:26 PM

These types of questions are best started at Hibernate's user forums: https://forum.hibernate.org/viewforum.php?f=1. Please open JIRA tickets only for concise, reproduceable issues with an attached test case. Thanks!

Rejected

Assignee

Unassigned

Reporter

deng hui

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure