In its current format we shouldn't suggest that the return type matches the types passed. Make sure to return a Query<T> whose T is Object or at best{{Object[]}} if projections are enabled. Keep in mind that in ORM a projection of one single element might actually not return an array but the instance directly. See
HSEARCH-2225 Open |