Interface UserRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<UserObject,Long>, org.springframework.data.repository.ListCrudRepository<UserObject,Long>, org.springframework.data.repository.Repository<UserObject,Long>

public interface UserRepository extends org.springframework.data.repository.ListCrudRepository<UserObject,Long>
The UserRepository interface provides data access methods for interacting with UserObject entities.
  • Method Summary

    Modifier and Type
    Method
    Description
    Find a user by their username.

    Methods inherited from interface org.springframework.data.repository.CrudRepository

    count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save

    Methods inherited from interface org.springframework.data.repository.ListCrudRepository

    findAll, findAllById, saveAll
  • Method Details

    • findByUsername

      UserObject findByUsername(String username)
      Find a user by their username.
      Parameters:
      username - The username to search for.
      Returns:
      The UserObject with the specified username, or null if not found.