public interface RuntimeAppRepository extends org.springframework.data.jpa.repository.JpaRepository<RuntimeApp,Long>
Modifier and Type | Method and Description |
---|---|
Long |
countByUser(User user) |
void |
deleteInBatchByAppId(Long appId) |
List<RuntimeApp> |
findByAppDefinition(RuntimeAppDefinition appDefinition) |
RuntimeApp |
findByUserAndAppDefinition(User user,
RuntimeAppDefinition appDefinition) |
RuntimeApp |
findByUserAndAppDefinitionId(User user,
Long appId) |
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, flush, getOne, save, saveAndFlush
RuntimeApp findByUserAndAppDefinition(User user, RuntimeAppDefinition appDefinition)
@Query(value="select app from RuntimeApp app where app.user = :user and app.appDefinition.id = :appId") RuntimeApp findByUserAndAppDefinitionId(@Param(value="user") User user, @Param(value="appId") Long appId)
List<RuntimeApp> findByAppDefinition(RuntimeAppDefinition appDefinition)
@Modifying @Query(value="delete from RuntimeApp app where app.appDefinition.id = ?") void deleteInBatchByAppId(Long appId)
Copyright © 2014–2015 Alfresco. All rights reserved.