to do the job, but i'm looking for a more typesafe approach. Beside i would like to still be able to use the query method mechanism to generate the actual query.
Affects: 2.0.12 (Kay SR12)
The text was updated successfully, but these errors were encountered:
spring-projects-issues commentedNov 29, 2018
tinesoft opened DATAMONGO-2151 and commented
Since #53, it is now possible to restrict results of a query to specific types, thanks to the new 'restrict ()' method on the Query object.
it would be nice if this feature could be made available on the
@Query
annotation as well.This could be done, for example, via a restrict parameter that would accept a array of Class<?>, just like the restrict method on the Query class.
For example:
Of course i could also use:
to do the job, but i'm looking for a more typesafe approach. Beside i would like to still be able to use the query method mechanism to generate the actual query.
Affects: 2.0.12 (Kay SR12)
The text was updated successfully, but these errors were encountered: