Skip to content
This repository has been archived by the owner on Jul 30, 2021. It is now read-only.

Update COMPARABLE TypeCategory so that java.util.UUID instances are deemed to be comparable #41

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

selimnairb
Copy link

The change in this PR solves querydsl issue 2220 (querydsl/querydsl#2220, which is documented in more detail here: https://groups.google.com/forum/m/#!msg/querydsl/iS0fNn16EO4/Hj6JJ3ACAgAJ).

@@ -50,7 +50,7 @@
/**
*
*/
COMPARABLE(SIMPLE),
COMPARABLE(SIMPLE, java.util.UUID.class.getName()),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would bleed the change to the COMPARABLE category into DATE, DATETIME...
So this is not the correct solution.

@selimnairb
Copy link
Author

Hi @Shredder121. I am new to this code so I am not sure I follow. Can you elaborate?

@Shredder121
Copy link
Member

I mean, semantically the sub-COMPARABLE TypeCategories will then inherit the java.util.UUID type as valid type.
Better to fix it in the module where it's used.
I'll leave this open, but I would fix it in Querydsl proper.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants