Browse Source
AI rule node: replace derived query for bulk deletion by tenant ID with JPQL query
pull/13371/head
Dmytro Skarzhynets
1 year ago
No known key found for this signature in database
GPG Key ID: 2B51652F224037DF
1 changed files with
3 additions and
1 deletions
-
dao/src/main/java/org/thingsboard/server/dao/sql/ai/AiModelSettingsRepository.java
|
|
@ -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 |
|
|
|