@ -43,12 +43,12 @@ public interface AttributeKvRepository extends JpaRepository<AttributeKvEntity,
@Param("attributeKey")intattributeKey);
@Param("attributeKey")intattributeKey);
@Query(value="SELECT DISTINCT attribute_key FROM attribute_kv WHERE "+
@Query(value="SELECT DISTINCT attribute_key FROM attribute_kv WHERE "+
"AND entity_id in (SELECT id FROM device WHERE tenant_id = :tenantId and device_profile_id = :deviceProfileId limit 100) ORDER BY attribute_key",nativeQuery=true)
"entity_id in (SELECT id FROM device WHERE tenant_id = :tenantId and device_profile_id = :deviceProfileId limit 100) ORDER BY attribute_key",nativeQuery=true)