Questions tagged [query-by-example]
97 questions
0
votes
0 answers
mobile PIN based authentication for mobile app in flutter with authnitication
I need to build a mobile app where i need to first register a user by phone number followed by setting up a 4 digit PIN. Next time when user logs in user can directly input the set 4 digit PIN and logs in on the app. How can i implement it with…
0
votes
0 answers
Springboot ExampleMatcher always returns no result
I have the following entity and I'm trying to use ExampleMatcher for simple queries:
@Entity(name="UserAccount")
@Table(name = "useraccount", catalog = "useraccount")
@Data
public class UserAccount implements…

Discipulos
- 423
- 8
- 23
0
votes
1 answer
Spring JPA Query By Example return error in case all values are null
I'm using Spring JPA Query By Example to allow dynamic filters. However I notice that if the example object has all the values set a null, the example query returns all the values of the table.
I cannot add mandatory field, since the queries must be…

Manotas
- 41
- 1
0
votes
1 answer
Django queryset more simpel
is there a way to combine those 2 lines of code?
a = terminal.provisioning_set.first()
b = a.usergroup.id
the result is coming from:
terminal = Terminal.get_object(terminal_id, request.user)
I like to see something like this:
result =…

Richard Live
- 11
- 1
0
votes
1 answer
How to use Example Matcher with nested fields not fully filled
I've got the following structure:
@Document
class A {
String value1;
B b;
}
class B {
String value1;
String value2;
Integer value3;
}
Then I save a document with the following values:
{
value1: "val",
b: {
value1: "val1",
value2: "val2"
value3:…

Greg
- 1,227
- 5
- 23
- 52
0
votes
1 answer
ExampleMatcher config for find multiple fields with null value
Trying to find multiple fields with ExampleMatcher query.
in below class we have 4 field:
public class contact {
private String name;
private long phoneNumber; //primary
private String email;
private String organization;
}
Now for example I…

Hossein Koraei
- 23
- 6
0
votes
1 answer
Can Query by Example in Spring Boot be used to substitute conditional logic when using @RequestParams?
I have the following code for a Spring Boot application:
Entity:
@Proxy(lazy = false)
public class Vehicle {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
private String type;
private String make;
private…

Cody Walker
- 3
- 2
0
votes
1 answer
Java Spring Unsupported StringMatcher REGEX
There is an issue when attempting to use StringMatcher.REGEX with java spring. There is no compiler error or anything, but when you attempt to call the item using the above string matcher, you receive the following error:
2020-10-09 15:07:30.543…

Nox
- 1,358
- 1
- 13
- 25
0
votes
1 answer
Spring Data JPA Query by Example Returns Null
I have looked at numerous examples and tried various w/ & w/o example matcher constraints but whatever I do my query by example only returns null.
I am able to get the CRUD Repository data calls to work without any issues, however I extended that to…

Bill Snee
- 119
- 1
- 11
0
votes
1 answer
Spring QueryByExampleExecutor empty result
When spring starts without Example everything is fine, but with Example the result is empty
Application.java
@SpringBootApplication
public class SelkinApplication {
public static void main(String[] args) {
…

Injection
- 301
- 3
- 8
0
votes
1 answer
Need help in creating date range query format sample in QBE(Query by Example) MarkLogic
I am looking for date range query in QBE. I am trying below query…

PALLAVI
- 21
- 7
0
votes
1 answer
Issue with MarkLogic QBE starts with functionality, QBE Date range in QBE API and Search filter criteria in Search API
I am exploring the MarkLogic QBE (query by example) API and in that would like to check how can i find the JSON documents which has "Name" key starts with some keyword such as "Hello*"? We can have $value parameter in QBE query for exact value…

PALLAVI
- 21
- 7
0
votes
1 answer
inexplicable syntax error when I write one code from the documentation
I have a newbie problem with the syntax. I've just started learning AQL. The documentation is good but I keep making a syntax error that I can´t explain.
I tried doing exactly the same as the documentation says; I copied the same thing with the same…
0
votes
2 answers
MYSQL query by example(QBE)
I really don't understand this
QBE
means.. I have searched but i unable to understand this term ..
My client need to
generate report using QBE
as my knowledge this is REGEXP search but not clear,
can anyone have the better example to understand…

Gowri
- 16,587
- 26
- 100
- 160
0
votes
2 answers
Java: Strings: Not giving a good result
I am trying this textbook example, and I checked, this is exactly what was in the book:-
public class StringBuilderConstructors
{
public static void main(String[] args)
{
Object objectRef = "hello";
String string = "goodbye";
char[]…

Neetu Datta
- 3
- 3