From 110f25edbcc5374341ffcfb426fac2dbecd8a014 Mon Sep 17 00:00:00 2001 From: Lihui Hu Date: Mon, 3 Jun 2024 16:40:37 -0400 Subject: [PATCH] add reference IDs --- .../gsrs/module/substance/repository/ReferenceRepository.java | 2 +- .../gsrs/module/substance/services/ReferenceEntityService.java | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/gsrs-module-substances-core/src/main/java/gsrs/module/substance/repository/ReferenceRepository.java b/gsrs-module-substances-core/src/main/java/gsrs/module/substance/repository/ReferenceRepository.java index 9c5ff8018..96b7611b5 100644 --- a/gsrs-module-substances-core/src/main/java/gsrs/module/substance/repository/ReferenceRepository.java +++ b/gsrs-module-substances-core/src/main/java/gsrs/module/substance/repository/ReferenceRepository.java @@ -19,6 +19,6 @@ public interface ReferenceRepository extends GsrsVersionedRepository findByUuidStartingWith(String partialUUID); - @Query("select r.id from Reference r") + @Query("select r.uuid from Reference r") List getAllIDs(); } diff --git a/gsrs-module-substances-core/src/main/java/gsrs/module/substance/services/ReferenceEntityService.java b/gsrs-module-substances-core/src/main/java/gsrs/module/substance/services/ReferenceEntityService.java index 8851df71a..d0b42b5db 100644 --- a/gsrs-module-substances-core/src/main/java/gsrs/module/substance/services/ReferenceEntityService.java +++ b/gsrs-module-substances-core/src/main/java/gsrs/module/substance/services/ReferenceEntityService.java @@ -235,7 +235,6 @@ protected Optional flexLookupIdOnly(String someKindOfId) { @Override public List getIDs() { - // TODO Auto-generated method stub - return new ArrayList(); + return repository.getAllIDs(); } }