Sorry for mistake my code are:
BatchRecord br = (BatchRecord) dsl.newRecord(DSL.*table*(DSL.*name*("schema",
Batch.*BATCH*.getName())) , batch);
dsl.insertInto(DSL.*table*(DSL.*name*("schema", Batch.*BATCH*
.getName()))).set(br).onDuplicateKeyUpdate().set(br).execute();
the error are:
java.lang.ClassCastException: class org.jooq.impl.RecordImpl cannot be cast
to class it.ieo.dao.jooq.codegen.dc1.tables.records.BatchRecord
(org.jooq.impl.RecordImpl and
it.ieo.dao.jooq.codegen.dc1.tables.records.BatchRecord are in unnamed
module of loader 'app')
Il giorno dom 29 mar 2020 alle ore 23:13 Rob Sargent <[email protected]>
ha scritto:
> And exactly what problem are you having?
>
> On Mar 29, 2020, at 2:24 PM, nome cognome <[email protected]> wrote:
>
> Hi everyone,
> i have a question, i want to put data in db using:
>
> *public* Table<?> = DSL.*table*(DSL.*name*(schema, Batch.*BATCH*
> .getName()));
> BatchRecord br = dsl.newRecord(tablesFields.batchTable , batchPOJO);
> dsl.insertInto(Batch.*BATCH*
> ).set(br).onDuplicateKeyUpdate().set(br).execute();
>
> but i have some problem with dsl.newRecord
>
> how i do to resolve?
> thanks
> Giuseppe
>
> --
> You received this message because you are subscribed to the Google Groups
> "jOOQ User Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jooq-user/5853ba15-4919-4939-90b3-bdcb849274d9%40googlegroups.com
> <https://groups.google.com/d/msgid/jooq-user/5853ba15-4919-4939-90b3-bdcb849274d9%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "jOOQ User Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jooq-user/918B7BB5-0DD1-4924-8196-AE1B7C40E710%40gmail.com
> <https://groups.google.com/d/msgid/jooq-user/918B7BB5-0DD1-4924-8196-AE1B7C40E710%40gmail.com?utm_medium=email&utm_source=footer>
> .
>
--
You received this message because you are subscribed to the Google Groups "jOOQ
User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jooq-user/CAO6DE2kESwBBr3XYxKM9e%3DXPo3-ZCKYO2enzh%2Bur85WwWqEY%3DQ%40mail.gmail.com.