I'm trying to do the following in my repository
public interface RecordRepository extends ElasticsearchRepository<MapRecord, String> {
List<MapRecord> findAllByMapId(UUID mapId);
}
I checked and the UUID passed is valid but I keep getting the following error
2024-08-28T07:14:06.629-04:00 ERROR 71164 --- [nio-8080-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed: org.springframework.core.convert.ConversionFailedException: Failed to convert from type [java.lang.String] to type [java.util.UUID] for value [uRammJEBFLu3c54-2L-g]] with root cause
java.lang.IllegalArgumentException: Invalid UUID string: uRammJEBFLu3c54-2L-g
Even though the UUID prints out to console as
7bd634bc-59b3-4526-9ad4-cbd1a8f76f26
Also, mapId is not @Id it's just a copy of another repo's id to use for requests, so stored as any other class variable