Skip to content

Commit

Permalink
tentative null comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
mmouly authored Dec 16, 2024
1 parent 9fbc9c7 commit e00365d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ public interface UsageRepository extends CrudRepository<UsageEntity, String> {
@Query("SELECT u FROM UsageEntity u WHERE u.id = ?1")
List<UsageEntity> 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<UsageEntity> 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<UsageEntity> finAllUsagesNotReported();

@Query("SELECT m FROM UsageEntity m WHERE m.report IS NOT null")
Expand Down

0 comments on commit e00365d

Please sign in to comment.