Replies: 1 comment
-
This is a great idea, if we only talk about the return types of repositories. This would only affect the null checks in the controller layer. This discussion can be implemented with #90 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We could return a Optional instead of a object directly. Then we could remove the null checks and improve the code readability.
The PanacheRepositoryBase already contains the method 'findByIdOptional' as an alternative of 'findById'
Beta Was this translation helpful? Give feedback.
All reactions