@Repository public interface OfflineStatusRepository extends org.springframework.data.jpa.repository.JpaRepository<OfflineStatus,Long>
| Modifier and Type | Method and Description |
|---|---|
List<OfflineStatus> |
findByObjectIdAndObjectType(Long objectId,
String objectType) |
OfflineStatus |
findByObjectIdAndObjectTypeAndEgwStatus_code(Long objectId,
String objectType,
String statusCode) |
OfflineStatus |
getLastOfflineStatusByObjectIdAndObjectType(Long objectId,
String objectType) |
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAll, flush, getOne, save, saveAndFlushfindAllList<OfflineStatus> findByObjectIdAndObjectType(Long objectId, String objectType)
OfflineStatus findByObjectIdAndObjectTypeAndEgwStatus_code(Long objectId, String objectType, String statusCode)
@Query(value="select stat from OfflineStatus as stat where stat.id = (select max(os.id) from OfflineStatus as os where os.objectId = :objectId and os.objectType = :objectType) and stat.objectId = :objectId and stat.objectType = :objectType") OfflineStatus getLastOfflineStatusByObjectIdAndObjectType(@Param(value="objectId") Long objectId, @Param(value="objectType") String objectType)
Copyright © 2015–2016 eGovernments Foundation. All rights reserved.