Package africa.absa.inception.reference
Interface MeasurementUnitTypeRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<MeasurementUnitType,,MeasurementUnitTypeId> org.springframework.data.jpa.repository.JpaRepository<MeasurementUnitType,,MeasurementUnitTypeId> org.springframework.data.repository.PagingAndSortingRepository<MeasurementUnitType,,MeasurementUnitTypeId> org.springframework.data.repository.query.QueryByExampleExecutor<MeasurementUnitType>,org.springframework.data.repository.Repository<MeasurementUnitType,MeasurementUnitTypeId>
public interface MeasurementUnitTypeRepository
extends org.springframework.data.jpa.repository.JpaRepository<MeasurementUnitType,MeasurementUnitTypeId>
The MeasurementUnitTypeRepository interface declares the repository for the
MeasurementUnitType domain type.
- Author:
- Marcus Portmann
-
Method Summary
Modifier and TypeMethodDescriptionfindAll()Retrieve all the measurement unit types sorted by locale ID, sort index, and name.findByLocaleIdIgnoreCase(String localeId) Retrieve the measurement unit types for the specified locale sorted by locale ID, sort index, and name.Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, saveMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAllById, flush, getById, getOne, saveAll, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findOne
-
Method Details
-
findAll
@Query("select mut from MeasurementUnitType mut order by mut.localeId, -mut.sortIndex DESC, mut.name") List<MeasurementUnitType> findAll()Retrieve all the measurement unit types sorted by locale ID, sort index, and name.- Specified by:
findAllin interfaceorg.springframework.data.repository.CrudRepository<MeasurementUnitType,MeasurementUnitTypeId> - Specified by:
findAllin interfaceorg.springframework.data.jpa.repository.JpaRepository<MeasurementUnitType,MeasurementUnitTypeId> - Returns:
- all the measurement unit types sorted by locale ID, sort index, and name.
-
findByLocaleIdIgnoreCase
@Query("select mut from MeasurementUnitType mut where upper(mut.localeId) = upper(:localeId) order by mut.localeId, -mut.sortIndex DESC, mut.name") List<MeasurementUnitType> findByLocaleIdIgnoreCase(String localeId) Retrieve the measurement unit types for the specified locale sorted by locale ID, sort index, and name.- Parameters:
localeId- the Unicode locale identifier for the locale to retrieve the measurement unit types for- Returns:
- the measurement unit types for the specified locale sorted by locale ID, sort index, and name
-