Implement NH-3472.
Joining to association twice by one path using criteria.