You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public class BulkEntity {
@Id
private String id;
@NotNull
private Long bulkId;
@NotNull
private String bulkName;
@NotNull
@DBRef
private OperatorEntity operator;
}
and
public class OperatorEntity {
private String id;
@NotNull
private String name;
}
the corresponding QBulkEntity and QOperatorEntity classes are generated and I see no problem with them, but when I try to call bulkRepository.findAll with predicate that uses IN operator it doesn't work (returns no results)
example:
var operatorIds = List.of("6659aaf9e6f5547ba1e1aca5", "6659aaf9e6f5547ba1e1aca7");
var operatorIdPath = Expressions.stringPath("operator.id");
var predicate = operatorIdPath.in(operatorIds);
var entityPage = bulkRepository.findAll(predicate);
entityPage returns no result, even though entities with the ID's are present in 'operators' collection.
Is this an issue or I'm doing something wrong?
I found similar ticket that explains this problem back in 2017
thanks for reporting - to speed things up a bit, do you have a complete minimal sample (something that we can unzip or git clone, build, and deploy) that reproduces the problem?
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.
Uh oh!
There was an error while loading. Please reload this page.
I'm having this setup:
and
the corresponding
QBulkEntity
andQOperatorEntity
classes are generated and I see no problem with them, but when I try to callbulkRepository.findAll
with predicate that uses IN operator it doesn't work (returns no results)example:
entityPage
returns no result, even though entities with the ID's are present in 'operators' collection.Is this an issue or I'm doing something wrong?
I found similar ticket that explains this problem back in 2017
versions that I use are:
The text was updated successfully, but these errors were encountered: