Можно ли создать предикат QueryDSL, используя пример объекта? Например:
Customer customerExample = new Customer();
customerExample.setName("John");
customerExample.setCountry("EUA");
QCustomer customer = QCustomer.customer;
Customer bob = queryFactory.selectFrom(customer)
.where(customer.example(customerExample )) // matches customers with name like "John" and country like "EUA"
.fetch();
Если нет, есть ли альтернатива, кроме использования SpringJPA?