public interface AppRelationRepository extends org.springframework.data.jpa.repository.JpaRepository<AppRelation,Long>
Modifier and Type | Method and Description |
---|---|
void |
deleteAppRelationsForRuntimeAppDeployment(Long runtimeAppId) |
List<AppRelation> |
findByRuntimeAppIdAndType(Long runtimeAppId,
String type) |
List<AppRelation> |
findByRuntimeModelId(Long runtimeModelId) |
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, flush, getOne, save, saveAndFlush
List<AppRelation> findByRuntimeAppIdAndType(Long runtimeAppId, String type)
@Query(value="select a from AppRelation a inner join a.modelHistory m where m.modelId = :runtimeModelId") List<AppRelation> findByRuntimeModelId(@Param(value="runtimeModelId") Long runtimeModelId)
@Modifying @Query(value="delete from AppRelation ar where ar.runtimeAppId = :runtimeAppId") void deleteAppRelationsForRuntimeAppDeployment(@Param(value="runtimeAppId") Long runtimeAppId)
Copyright © 2014–2015 Alfresco. All rights reserved.