Interface IUserDAO

All Superinterfaces:
IGenericDAO<User,UUID>
All Known Implementing Classes:
UserDAOImpl

public interface IUserDAO extends IGenericDAO<User,UUID>
Data Access Object (DAO) interface for managing User entities.

Extends IGenericDAO to inherit common CRUD operations and defines additional queries specific to User management.

See Also:
  • Method Details

    • findByEmail

      Optional<User> findByEmail(String email)
      Finds a user by their email address.
      Parameters:
      email - The email address of the user - must not be null.
      Returns:
      An Optional containing the user if found, otherwise an empty Optional.
    • existsByEmail

      boolean existsByEmail(String email)
      Checks whether a user with the specified email exists.
      Parameters:
      email - The email address to check - must not be null.
      Returns:
      true if a user with the given email exists, false otherwise.