Skip to content
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

Possibility to add custom type handlers #1

Open
shavrova opened this issue Aug 10, 2022 · 0 comments
Open

Possibility to add custom type handlers #1

shavrova opened this issue Aug 10, 2022 · 0 comments

Comments

@shavrova
Copy link

Hi there. Very useful project, but not enough types for me to use unfortunately. I can create a PR to add UUID, LocalDateTime etc, but the problem is I need to populate my record with custom enum type and I don't know how to do it. Fork also is not an option because this enum type is something generated (not in runtime) and I don't know that it will be.
I was thinking something like that (but I'm not sure it even possible since it uses reflection):

RandomJooq.addTypeHandler(MyTypeHandler.class);
MyJooQRecord myJooQRecord = RandomJooq.randomize(MyJooQRecord.class);

I can do it myself if you'll give me a hint, I didn't work with reflection before and from first look I don't know if it's doable to pass a class here like that.

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

No branches or pull requests

1 participant