diff --git a/hawkbit-repository/hawkbit-repository-jpa/src/main/java/org/eclipse/hawkbit/repository/jpa/repository/DistributionSetRepository.java b/hawkbit-repository/hawkbit-repository-jpa/src/main/java/org/eclipse/hawkbit/repository/jpa/repository/DistributionSetRepository.java index 0dc3a4ddc..d79198f8c 100644 --- a/hawkbit-repository/hawkbit-repository-jpa/src/main/java/org/eclipse/hawkbit/repository/jpa/repository/DistributionSetRepository.java +++ b/hawkbit-repository/hawkbit-repository-jpa/src/main/java/org/eclipse/hawkbit/repository/jpa/repository/DistributionSetRepository.java @@ -30,8 +30,7 @@ import org.springframework.transaction.annotation.Transactional; * {@link DistributionSet} repository. */ @Transactional(readOnly = true) -public interface DistributionSetRepository - extends BaseEntityRepository { +public interface DistributionSetRepository extends BaseEntityRepository { /** * Count {@link Rollout}s by Status for Distribution set. @@ -66,18 +65,6 @@ public interface DistributionSetRepository @Query(value = "SELECT COUNT(f.autoAssignDistributionSet) FROM JpaTargetFilterQuery f WHERE f.autoAssignDistributionSet.id = :dsId GROUP BY f.autoAssignDistributionSet") Long countAutoAssignmentsForDistributionSet(@Param("dsId") Long dsId); - /** - * deletes the {@link DistributionSet}s with the given IDs. - *

- * No access control applied. - * - * @param ids to be deleted - */ - @Modifying - @Transactional - @Query("update JpaDistributionSet d set d.deleted = true where d.id in :ids") - void deleteDistributionSet(@Param("ids") Long... ids); - /** * Finds {@link DistributionSet}s where given {@link SoftwareModule} is * assigned. @@ -135,4 +122,4 @@ public interface DistributionSetRepository @Transactional @Query("DELETE FROM JpaDistributionSet t WHERE t.tenant = :tenant") void deleteByTenant(@Param("tenant") String tenant); -} +} \ No newline at end of file