theodo-fintech/spring-search

Allow Searching by UUID

Closed this issue · 4 comments

Hello!

I would like to be able to find objects by uuid,
When I try to pass a UUID type in the Specs it says "Parameter value [3fa85f64-5717-4562-b3fc-2c963f66afa6] did not match expected type [java.util.UUID (n/a)]". This considering that my model has JpaRepository<MyModel, UUID>.
As well, there's no way to cast or parse the specs content, so I could just parse it by using UUID.fromString(specs content).

Any idea or assist ?
Thanks for reading...

Hello,
Thank you for taking the time to write this issue.
A PR was just merged adding this feature to the SpringSearch annotation.
I will be deploying the new package version by friday.

Thanks Luc !
I've been waiting for the new release, really appreciate if you can help me with this.

@DavidDiaz1949 Hello sorry for the wait, just released the new version to 0.2.4.
Does everything work for you ?

Working as expected!!, Thanks a lot Luc.