Interface CredentialsRepository

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

public interface CredentialsRepository extends org.springframework.data.repository.CrudRepository<CredentialsEntity,Long>
This is CredentialsRepository interface. Interface for generic CRUD operations of the Credentials entity. This handles the below operations.
  • Create
  • Read
  • Update
  • Delete
Author:
Infosys Equinox
  • Method Summary

    Modifier and Type
    Method
    Description
    findByUserId(long userId)
    This is used to load the credentials by user id.

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

    count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findAll, findAllById, findById, save, saveAll
  • Method Details

    • findByUserId

      CredentialsEntity findByUserId(long userId)
      This is used to load the credentials by user id.
      Parameters:
      userId - Indicates the user id for loading credential entity.
      Returns:
      The CredentialsEntity object.