New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Housekeeping: use plain enums with IN
clauses where possible
#5343
Comments
Here's an example:
where we could just have written:
|
Hi @davidwatkins73 - Is there anything I can do to help pull contributors into this issue. It would be great to get into closed and over the line? Speak soon, James 🚀 |
Hi @davidwatkins73
to
|
Hi @vijaya-lakshmi-venkatraman I've taken a look at your suggestion, however I'm not sure it will work as I don't think jOOQ offers overloaded variants of Thanks, /dw |
I've assigned the issue to you for tracking purposes. It doesn't mean we are expecting you to contribute, just that we want to ensure that we don't end up with duplicate work. Let me know if you'd rather not be listed. |
In some parts of waltz we needlessly convert enum values to string equivalents eg.
dsl.select().from(Tables.FOO).where(FOO.COL.in(MyEnum.BAA.name());
jOOQ is perfectly happy to allow this instead:
dsl.select().from(Tables.FOO).where(FOO.COL.in(MyEnum.BAA);
As a first pass looking for code that matches the following search str:
ENTITY_LIFECYCLE_STATUS.in(
- gives a few candidates where we are mapping over a set of enums to get their string's and using those in the in clause.`
The text was updated successfully, but these errors were encountered: