query-by-example Questions

1

I am new to Java and Spring, and I am building a sytem using Spring JPA. I am now working on my service and controller classes, and I would like to create a dynamic query. I have created a form, in...
Ripe asked 25/9, 2017 at 17:9

2

I'm using Spring JPA and get list of data by using Example Matcher. Source code below: public Page<TranxLog> findAllByConditions(TranxReportFormModel formModel, Pageable page) { ExampleMatc...

1

I have Spring Application with a repository interface EventRepository extends JpaRepository<Event, Long>, QueryByExampleExecutor<Event> { } Event e = new Event(); e.setTest('ABC'); e...
Epa asked 12/1, 2017 at 7:24

1

Solved

How to implement ExampleMatcher, to match just one property randomly from my class and ignore the other properties? Assume my class like this : Public Class Teacher() { String id; String name; S...
Kado asked 27/2, 2019 at 17:36

3

My use case is I am having one table in hive which has one column as INT and one as Array data type. I want to display it horizontally..
Departure asked 30/11, 2015 at 7:6

4

Solved

This is an SSCCE, shows research, isn't a dupe and is on topic!!! Spring Boot REST service and MySQL here. I have the following Profile entity: @Entity @Table(name = "profiles") public class Pr...
Taction asked 19/1, 2018 at 17:19

1

Solved

I'm trying to understand how to use Spring Data's Query by Example capabilities, and am struggling to understand how to use ExampleMatcher and its various with* methods. Classic examples of the mat...
Rumph asked 2/2, 2018 at 3:30

1

Solved

As per Spring Docs, I can write exact matching only for QBE. I need exact matching only but among a set of values (IN clause of query). e.g. Person p = new Person(); p.setId(); // need to match a...
Bugger asked 30/1, 2018 at 18:21

2

What are the use cases of the methods of this interface QueryByExampleExecutor<T> in Spring data JPA. I have googled and found nothing more than the official documentation. Perhaps someone c...
Hereupon asked 3/10, 2016 at 1:13

3

Solved

It's very frustrating that you cannot use QBE on associations. I have a large datatable with about 8 many-to-one columns. There is a a drop-down list for every column to filter the table. Let's a...
Barman asked 16/2, 2012 at 10:45

1

Solved

I have domain object Person with date fields: public class Person { @Id private Long id; private Date date Build example like this: Person person = new Person(); person.setSomeOtherFields("some...
Eluvium asked 17/9, 2016 at 22:50

2

Solved

Basically, I want to use the "nice" Dapper syntax for a stored procedure, without having to manually use exec MySproc @p1, @p2, @p3, @p4 and so on, but I need to be able to pass in a strongly typed...
Buy asked 22/5, 2012 at 15:44

2

Solved

By the moment, I know four kinds of doing transactions with hibernate: Using objects Using HQL Using DB-specific SQL Using criteria (QBE) Well, regarding how strong are they against injections,...
Crapulous asked 19/7, 2011 at 11:35
1

© 2022 - 2024 — McMap. All rights reserved.