Criteria withClause doesn't work in case of many to many collections

Description

Creating an alias on a many to many collection using withClause, generates incorrect sql (adds withClause to both joins - many to many table and actual table)

Environment

None

Assignee

Alex Zaytsev

Reporter

Mihai Marandici

Labels

Components

Fix versions

Affects versions

Priority

Major
Configure