AI rule node: replace derived query for bulk deletion by tenant ID with JPQL query
This commit is contained in:
parent
36e16bb877
commit
cde8bd1c93
@ -72,7 +72,9 @@ interface AiModelSettingsRepository extends JpaRepository<AiModelSettingsEntity,
|
|||||||
int deleteByIdIn(@Param("ids") Set<UUID> ids);
|
int deleteByIdIn(@Param("ids") Set<UUID> ids);
|
||||||
|
|
||||||
@Transactional
|
@Transactional
|
||||||
int deleteByTenantId(UUID tenantId);
|
@Modifying
|
||||||
|
@Query("DELETE FROM AiModelSettingsEntity ai_model WHERE ai_model.tenantId = :tenantId")
|
||||||
|
int deleteByTenantId(@Param("tenantId") UUID tenantId);
|
||||||
|
|
||||||
@Transactional
|
@Transactional
|
||||||
@Modifying
|
@Modifying
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user