You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Taking notes what should be changed in v5. Those are going to be breaking changes.
We should introduce insert method as alternative to save (which should be insert or update based on the id presence) (Adding new InsertOneInterceptor etc interceptors)
PagedQuery should contain all the information that can be used to produce a Page, it should have the optional select and count PreparedQuery query. Methods in RepositoryOperations<T> long count(PagedQuery<T> pagedQuery) <R> Page<R> findPage(@NonNull PagedQuery<R> query) should be more used.
Cleanup @DataMethod now queries (base query + optional count query) are stored as sub values
RepositoryOperations should return List instead of Itereable, that was changed for the repository classes but not for the operations
Remove old query builder on query model
Use Hibernate's pagination support for returning pages. We alredy use it for Cursors to support Jakarta Data
The text was updated successfully, but these errors were encountered:
I propose to use upsert or re-purpose save method to insert or update depending on id presence. Save method bite me more than onse. Insert is clearly signalling "create a new"
Taking notes what should be changed in v5. Those are going to be breaking changes.
insert
method as alternative tosave
(which should beinsert
orupdate
based on the id presence) (Adding newInsertOneInterceptor
etc interceptors)PagedQuery
should contain all the information that can be used to produce aPage
, it should have the optional select and countPreparedQuery
query. Methods inRepositoryOperations
<T> long count(PagedQuery<T> pagedQuery)
<R> Page<R> findPage(@NonNull PagedQuery<R> query)
should be more used.@DataMethod
now queries (base query + optional count query) are stored as sub valuesRepositoryOperations
should returnList
instead ofItereable
, that was changed for the repository classes but not for the operationsThe text was updated successfully, but these errors were encountered: