-
Notifications
You must be signed in to change notification settings - Fork 356
Query by Example support #1192
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
I can take a closer look at this. |
This commit introduces the find by example method `findOne(Example<S> example)` to spring-data-jdbc. MyBatis implementation is missing since I do not have the knowledge for this. Related tickets spring-projects#1192
I started with implementing "query by example" but I can't implement the MyBatis version of this since my MyBatis knowledge is none existing. I hope somebody can be found who implements this at a later point. Changes only need to be done within |
This commit introduces the find by example method `findAll(...)` to spring-data-jdbc. MyBatis implementation is missing since I do not have the knowledge for this. Related tickets spring-projects#1192
This commit introduces the exists by example method `exists(...)` to spring-data-jdbc. MyBatis implementation is missing since I do not have the knowledge for this. Related tickets spring-projects#1192
This commit introduces the count by example method `count(...)` to spring-data-jdbc. MyBatis implementation is missing since I do not have the knowledge for this. Related tickets spring-projects#1192
…le pageable)`. This commit introduces the find by example pageable method `findAll(Example<S> example, Pageable pageable)` to spring-data-jdbc. MyBatis implementation is missing since I do not have the knowledge for this. Related tickets spring-projects#1192
I implemented 6 out of the 7 methods provided by The MyBatis implementation is missing as already mentioned above. Both are marked with |
Missing MyBatisDataAccessStrategy implementation and `findBy(Example<S> example, Function<FluentQuery.FetchableFluentQuery<S>, R> queryFunction)` marked with `UnsupportedOperationException`. Related tickets spring-projects#1192
PR can be found here #1195 |
Added `@since` comments for new methods and classes. General formatting and code style tweaking. Github references for new tests added. Fixes for integration tests with various databases: - Not all stores support submillisecond precision for Instant. - Count for exists query doesn't work for all databases, nor does `LEAST(COUNT(1), 1)` - MariaDB defaults timestamp columns to the current time. - Ordering was applied twice. - DATETIME in SqlServer has a most peculiar preceision. We switch to DATETIME2. Original pull request #1195 See #1192
I am a bit confused by #929.
Support for converting
Example
intoQuery
/Criteria
is added, but nothing else?To use query by example in a repository, additional changes are needed in repository implementation and classes used by that implementation like
JdbcAggregateTemplate
andDataAccessStrategy
?Do you have a plan to continue with that?
The text was updated successfully, but these errors were encountered: