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 jooq-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jooq-user/5853ba15-4919-4939-90b3-bdcb849274d9%40googlegroups.com.
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')
To view this discussion on the web visit https://groups.google.com/d/msgid/jooq-user/918B7BB5-0DD1-4924-8196-AE1B7C40E710%40gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jooq-user/CAO6DE2kESwBBr3XYxKM9e%3DXPo3-ZCKYO2enzh%2Bur85WwWqEY%3DQ%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to jooq-user+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jooq-user/5853ba15-4919-4939-90b3-bdcb849274d9%40googlegroups.com.
--
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 jooq-user+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jooq-user/918B7BB5-0DD1-4924-8196-AE1B7C40E710%40gmail.com.
--
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 jooq-user+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jooq-user/CAO6DE2kESwBBr3XYxKM9e%3DXPo3-ZCKYO2enzh%2Bur85WwWqEY%3DQ%40mail.gmail.com.
--
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 jooq-user+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jooq-user/CAB4ELO5XCcYA%3DAFQXYPi5eBpQEHbjy8TXYizDFGU2QOStKB2Pw%40mail.gmail.com.