Skip to content

is there a way to tell jooq to insert the schema in case of a cast to a domain object? #15842

Closed Answered by lukaseder
robstoll asked this question in Q&A
Discussion options

You must be logged in to vote

I'm assuming you're referring to org.jooq.postgres.extensions.bindings.CitextBinding, which in turn assumes that the citext type is on the search_path:
https://www.postgresql.org/docs/current/ddl-schemas.html#DDL-SCHEMAS-PATH

So, putting myschema on the search_path would be one option in your case.

You don't have to use the out of the box CitextBinding, you can bring your own, which is schema aware. I don't think there's much value in adding schema mapping to the binding at this point. It seems like too complex a solution for too simple a problem (which people usually solve with the search_path).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@robstoll
Comment options

Answer selected by lukaseder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment