Skip to content

Provide a dedicated read-only repository interface [DATACMNS-1638] #2064

@spring-projects-issues

Description

@spring-projects-issues

Vitor Carvalho opened DATACMNS-1638 and commented

Whenever a developer needs to create a read only repository, it has to extend the Repository interface and then add all the read methods from CrudRepository to it.

It would be useful to have a ReadRepository similar to CrudRepository with all the read only methods.

Optional<T> findById(ID id);

boolean existsById(ID id);

Iterable<T> findAll();

Iterable<T> findAllById(Iterable<ID> ids);

long count();

No further details from DATACMNS-1638

Metadata

Metadata

Labels

in: repositoryRepositories abstractionstatus: declinedA suggestion or change that we don't feel we should currently applytype: enhancementA general enhancement

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions