Interface UserProfileRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<UserProfile,UUID>, org.springframework.data.jpa.repository.JpaRepository<UserProfile,UUID>, org.springframework.data.repository.ListCrudRepository<UserProfile,UUID>, org.springframework.data.repository.ListPagingAndSortingRepository<UserProfile,UUID>, org.springframework.data.repository.PagingAndSortingRepository<UserProfile,UUID>, org.springframework.data.repository.query.QueryByExampleExecutor<UserProfile>, org.springframework.data.repository.Repository<UserProfile,UUID>

@Repository public interface UserProfileRepository extends org.springframework.data.jpa.repository.JpaRepository<UserProfile,UUID>
This interface represents the repository for the UserProfile entity. It extends JpaRepository to provide methods for manipulating UserProfile entities. JpaRepository is a JPA-specific extension of Repository that offers methods for common database operations, such as saving, deleting, and finding records. It is annotated with @Repository to indicate that it serves as a data access layer.
  • Method Summary

    Modifier and Type
    Method
    Description
    Finds a UserProfile entity by its email address.

    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.jpa.repository.JpaRepository

    deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlush

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

    findAll, findAllById, saveAll

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

    findAll

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

    findAll

    Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

    count, exists, findAll, findBy, findOne
  • Method Details

    • findByEmail

      Optional<UserProfile> findByEmail(String email)
      Finds a UserProfile entity by its email address.
      Parameters:
      email - The email address of the UserProfile to find.
      Returns:
      An Optional containing the UserProfile if found, or empty if no UserProfile exists with the given email.