Hibernate make same aliases for different joins

Description

Suppose, we have 3 entities

Then, we make criteria request

And get next sql

We can see that "B" table joins two times and have same alias name "b2_". Is it bug? And how make two joins but with different name of B table. Okay?

Environment

None

Activity

Show:
Andrea Boriero
July 6, 2016, 1:07 PM

Hi ,

can you specify which hibernate version is affected?

Thanks

Igor Bobko
July 7, 2016, 3:05 PM

Last Version. 5.2

Assignee

Unassigned

Reporter

Igor Bobko

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Affects versions

Priority

Major
Configure