Skip to content

Add support for projections using repository query methods #971

Closed
@eiswind

Description

@eiswind

When I create a Repository like:

interface TRepository : Repository<T, ID> {
    fun findAll(page:Pageable) : List<T>
}

the implementation uses

 Page<T> JdbcAggregateTemplate.findAll(Class<T> domainType, Pageable pageable) 

under the hood, which issues an (in this case) unnecessary "select count".

Can you think of adding an implementation that omits the additional select?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions