A query like from Entity e join e.elementCollection c where c.association.id is not null fails saying the property can't be found.