Package africa.absa.inception.reference
Interface MeasurementUnitRepository
-
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<MeasurementUnit,MeasurementUnitId>,org.springframework.data.jpa.repository.JpaRepository<MeasurementUnit,MeasurementUnitId>,org.springframework.data.repository.PagingAndSortingRepository<MeasurementUnit,MeasurementUnitId>,org.springframework.data.repository.query.QueryByExampleExecutor<MeasurementUnit>,org.springframework.data.repository.Repository<MeasurementUnit,MeasurementUnitId>
public interface MeasurementUnitRepository extends org.springframework.data.jpa.repository.JpaRepository<MeasurementUnit,MeasurementUnitId>
The MeasurementUnitRepository interface declares the repository for the MeasurementUnit domain type.- Author:
- Marcus Portmann
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<MeasurementUnit>findAll()List<MeasurementUnit>findByLocaleIdIgnoreCase(String localeId)-
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, findAll, findAllById, flush, getById, getOne, saveAll, saveAllAndFlush, saveAndFlush
-
-
-
-
Method Detail
-
findAll
@Query("select mu from MeasurementUnit mu order by mu.localeId, -mu.sortIndex DESC, mu.system, mu.type, mu.name") List<MeasurementUnit> findAll()- Specified by:
findAllin interfaceorg.springframework.data.repository.CrudRepository<MeasurementUnit,MeasurementUnitId>- Specified by:
findAllin interfaceorg.springframework.data.jpa.repository.JpaRepository<MeasurementUnit,MeasurementUnitId>
-
findByLocaleIdIgnoreCase
@Query("select mu from MeasurementUnit mu where upper(mu.localeId) = upper(:localeId) order by mu.localeId, -mu.sortIndex DESC, mu.system, mu.type, mu.name") List<MeasurementUnit> findByLocaleIdIgnoreCase(String localeId)
-
-