QueryBuilder deep criteria autojoin refactored from EntityDao