Enable joining the same association twice with Criteria
Today I encountered this… very annoying. I would need to join the same association multiple times (with different meanings and different additional join criteria), but hit this problem. Sad to see it’s still unresolved… and probably will ever be, since the Hibernate Criteria API is deprecated AFAIK.
Any effort to fix this issue?
I've attached a DetachedCriteria replacement/extension that deals with duplicate association paths, as long as the join type or alias is the same. Otherwise the same exception as usual occurs.
Simplest workaround I found :