From e00365daca8a965f2effdaf39d0b49295d4fd497 Mon Sep 17 00:00:00 2001 From: Mathias Mouly Date: Mon, 16 Dec 2024 09:54:36 +0100 Subject: [PATCH] tentative null comparison --- .../ilmt/service/usage/repository/UsageRepository.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/service/src/main/java/com/ibm/decision/metering/ilmt/service/usage/repository/UsageRepository.java b/service/src/main/java/com/ibm/decision/metering/ilmt/service/usage/repository/UsageRepository.java index aac1b27..28d4d31 100644 --- a/service/src/main/java/com/ibm/decision/metering/ilmt/service/usage/repository/UsageRepository.java +++ b/service/src/main/java/com/ibm/decision/metering/ilmt/service/usage/repository/UsageRepository.java @@ -29,10 +29,10 @@ public interface UsageRepository extends CrudRepository { @Query("SELECT u FROM UsageEntity u WHERE u.id = ?1") List findByInstanceId(String instanceId); - @Query("SELECT m FROM UsageEntity m WHERE m.instanceId = ?1 AND m.report = null") + @Query("SELECT m FROM UsageEntity m WHERE m.instanceId = ?1 AND m.report IS null") List findByInstanceIdWhereNoReport(String instanceId); - @Query("SELECT m FROM UsageEntity m WHERE m.report = null") + @Query("SELECT m FROM UsageEntity m WHERE m.report IS null") List finAllUsagesNotReported(); @Query("SELECT m FROM UsageEntity m WHERE m.report IS NOT null")