$slice access to @DBRef field throw exception [DATAMONGO-1272] #2191
Labels
in: core
Issues in core support
in: mapping
Mapping and conversion infrastructure
type: bug
A general bug
Zhu Hongshang opened DATAMONGO-1272 and commented
There is a model is like:
and I need sliced access to the members variable.
I use this query:
And I get this exception:
where a field:
is set. It checks against isExists, but not against something like isSliced (which does not yet exist) and therefore is evaluated to true and, as a cause, tries to convert the non-existing association which is, in this case, just the slice-directive (an integer array). When I set the variable needsAssociationConversion to false while debugging, as if a kind of
check was done, everything works fine
Affects: 1.8 M1 (Gosling)
Reference URL: http://stackoverflow.com/questions/31856871/spring-data-mongodb-query-fields-slice-on-dbref-field-throws-mappingexcepti
The text was updated successfully, but these errors were encountered: