Skip to content

Improve javadoc on QueryDslPredicateExecutor [DATACMNS-577] #1044

Closed
@spring-projects-issues

Description

@spring-projects-issues

Lovro Pandžić opened DATACMNS-577 and commented

Methods in the QueryDslPredicateExecutor should be better documented.
For example:

  • findOne - what happens if it finds more than one result and what happens if it does not find any - does it return a null or does it throw an exception?
  • findAll - how can it fail, can it return a null?

Fix params that are missing description.

Otherwise this causes possibly unneeded null checks and exception checks in the client code because clients can't know what to expect. This might also be applied to other repository interface definitions


Affects: 1.9 GA (Evans)

Referenced from: pull request #96

Backported to: 1.9.1 (Evans SR1), 1.8.5 (Dijkstra SR5)

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions