> But for this I need to create the whole new Schema / SchemaImp object with
> the name I need, right? And that's a little overkill, I think. I don't need
> even USE statement actually, because default database / schema is set by
> JDBC from connection string.

Then you can try the

SchemaMapping.use(Schema) method (to keep the USE statement from being
executed).
I have added a feature request to enhance the SchemaMapping, to also
allow for Strings to be passed:
https://sourceforge.net/apps/trac/jooq/ticket/605

In the mean time, you can either generate the schema you need, or
instanciate it yourself (new SchemaImpl(dialect, name))

> Also, if you add mapping like this:
>
>  mapping.add(Distribucalc.DISTRIBUCALC, 'distribucalc');
>
> Jooq silently hangs. Infinite cycle, I believe. Because
> Distribucalc.DISTRIBUCALC is named 'distribucalc' also.

That's a bug. This will be fixed in the next version:
https://sourceforge.net/apps/trac/jooq/ticket/606

Thanks for reporting these things.
Lukas

Reply via email to