llTheBlankll / attendance-system-api-springboot

This project is an Attendance System API built using Spring Boot, WebSocket, and JWT Authentication. The system provides a robust solution for tracking and managing attendance records, with support for real-time updates through WebSocket communication. This attendance is based on the education system of the Philippines
GNU General Public License v3.0
5 stars 2 forks source link

(JAVA-W1090) Use `existsById` instead of `findById` to check for the existence of an entity #13

Closed llTheBlankll closed 3 weeks ago

llTheBlankll commented 3 weeks ago

Description

Use existsById() instead of findById() if you are calling findById() for the sole purpose of checking for the existence of an entity in the repository.

Occurrences

There is 1 occurrence of this issue in the repository.

See all occurrences on DeepSource → app.deepsource.com/gh/llTheBlankll/attendance-system-api-springboot/issue/JAVA-W1090/occurrences/