@Repository public interface UnitOfMeasureRepository extends org.springframework.data.jpa.repository.JpaRepository<UnitOfMeasure,Long>
| Modifier and Type | Method and Description |
|---|---|
UnitOfMeasure |
findByCode(String code) |
UnitOfMeasure |
findByDescription(String description) |
List<UnitOfMeasure> |
getAllActiveUnitOfMeasures() |
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAll, flush, getOne, save, saveAndFlushfindAllUnitOfMeasure findByDescription(String description)
UnitOfMeasure findByCode(String code)
@Query(value="from UnitOfMeasure uom where uom.active=true order by uom.description ") List<UnitOfMeasure> getAllActiveUnitOfMeasures()
Copyright © 2015–2016 eGovernments Foundation. All rights reserved.