Interface FieldMappingRepository<D>

All Superinterfaces:
org.springframework.data.repository.CrudRepository<D,String>, com.broadleafcommerce.common.extension.DomainTypeAware, org.springframework.data.repository.Repository<D,String>
All Known Subinterfaces:
JpaFieldMappingRepository<D>

@NoRepositoryBean public interface FieldMappingRepository<D> extends org.springframework.data.repository.CrudRepository<D,String>, com.broadleafcommerce.common.extension.DomainTypeAware
Repository for persisted UserFieldMappings.
  • Method Summary

    Modifier and Type
    Method
    Description
    Finds all user field mappings for a tenant
    Find a user field mapping by target key
    findByTenantIdAndAttributeName(String tenantId, String attributeName)
    Find a user field mapping by tenant ID and attribute name

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

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

    Methods inherited from interface com.broadleafcommerce.common.extension.DomainTypeAware

    getDomainType
  • Method Details

    • findAllByTenantId

      List<D> findAllByTenantId(String tenantId)
      Finds all user field mappings for a tenant
      Parameters:
      tenantId - the tenant ID
      Returns:
      a page of user field mappings for the tenant
    • findByTenantIdAndAttributeName

      Optional<D> findByTenantIdAndAttributeName(String tenantId, String attributeName)
      Find a user field mapping by tenant ID and attribute name
      Parameters:
      tenantId - the tenant ID
      attributeName - the attribute name
      Returns:
      an optional of user field mapping
    • findByTargetKey

      Optional<D> findByTargetKey(String targetKey)
      Find a user field mapping by target key
      Parameters:
      targetKey - the target key
      Returns:
      an optional of user field mapping