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
Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, saveMethods inherited from interface org.springframework.data.repository.ListCrudRepository
findAll, findAllById, saveAll
-
Method Details
-
findByUsername
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.
-