public interface AppInstallationRepository extends org.springframework.data.repository.CrudRepository<AppInstallationEntity,GUID>
Modifier and Type | Method and Description |
---|---|
java.util.List<AppInstallationEntity> |
findByAppId(GUID appId) |
AppInstallationEntity |
findByShopGuidAndAppId(GUID shopGuid,
GUID appId) |
java.util.List<AppInstallationEntity> |
findByShopGuidAndState(GUID shopGuid,
AppInstallation.State state) |
java.util.List<StatsEntry> |
getStats() |
java.util.List<AppInstallationEntity> findByAppId(GUID appId)
AppInstallationEntity findByShopGuidAndAppId(GUID shopGuid, GUID appId)
java.util.List<AppInstallationEntity> findByShopGuidAndState(GUID shopGuid, AppInstallation.State state)
@Query(value="SELECT NEW com.epages.appstore.installation.StatsEntry(a.appId, a.state, COUNT(a.appId)) FROM AppInstallationEntity a GROUP BY a.appId, a.state") java.util.List<StatsEntry> getStats()