We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently we need to explicit pass which attributes will be used in example criteria.
It would be nice if those fields could be inferredautomatically based on which fields are not null.
Car carExample = new Car().model("Ferrari"); List<Car> cars = crudService.example(carExample, Car_.model).getResultList(); assertThat(cars).isNotNull().hasSize(1) .extracting("model") .contains("Ferrari"); carExample = new Car().model("porche").name("%avenger"); cars = crudService.exampleLike(carExample, Car_.name, Car_.model).getResultList(); assertThat(cars).isNotNull().hasSize(1) .extracting("name") .contains("porche avenger");
Note that metamodel attributes are explicity passed as parameters to the example method.
Car carExample = new Car().model("porche").name("%avenger"); List<Car> cars = crudService.exampleLike(carExample).getResultList(); assertThat(cars).isNotNull().hasSize(1) .extracting("name") .contains("porche avenger");
The text was updated successfully, but these errors were encountered:
4d1e48e
refs #45
05a4390
example criateria
No branches or pull requests
Issue Overview
Currently we need to explicit pass which attributes will be used in example criteria.
It would be nice if those fields could be inferredautomatically based on which fields are not null.
Current Behaviour
Note that metamodel attributes are explicity passed as parameters to the example method.
Expected Behaviour
Additional Information
The text was updated successfully, but these errors were encountered: