| Ok so apparently Hibernate did always add the join for entity references, except if the you dereferenced it's id attribute, but that doesn't work with id classes I guess. I implemented a fix that allows for predicates(EQ, NEQ, IN, NOT IN, IS NULL, IS NOT NULL) that use entity references like c.workplace = e.workplace to skip the join and use the id instead. |