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 TypeMethodDescriptionfindAllByTenantId
(String tenantId) Finds all user field mappings for a tenantfindByTargetKey
(String targetKey) Find a user field mapping by target keyfindByTenantIdAndAttributeName
(String tenantId, String attributeName) Find a user field mapping by tenant ID and attribute nameMethods 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
Finds all user field mappings for a tenant- Parameters:
tenantId
- the tenant ID- Returns:
- a page of user field mappings for the tenant
-
findByTenantIdAndAttributeName
Find a user field mapping by tenant ID and attribute name- Parameters:
tenantId
- the tenant IDattributeName
- the attribute name- Returns:
- an optional of user field mapping
-
findByTargetKey
Find a user field mapping by target key- Parameters:
targetKey
- the target key- Returns:
- an optional of user field mapping
-