[DATAMONGO-1511] Derived finder does not throw IncorrectResultSizeDataAccessException Created: 14/Oct/16 Updated: 12/Nov/19 Resolved: 12/Nov/19
|Project:||Spring Data MongoDB|
|Affects Version/s:||1.9.4 (Hopper SR4)|
|Reporter:||František Hartman||Assignee:||Mark Paluch|
|Remaining Estimate:||Not Specified|
|Time Spent:||Not Specified|
|Original Estimate:||Not Specified|
I have a simple derived finder:
MyType findByProperty(String property);
I have multiple records in the collection, whey I call the finder I expect an exception as described in the documentation
Right now (with 1.9.4) it returns one of the results.
I can see following in my log
in db.collection: my-test.myType
If I pass the query to mongo manually it returns multiple results, if I change the return type to a collection then all results are returned, but I need single entity with exception..
|Comment by Mark Paluch [ 12/Nov/19 ]|