Jooq - Insert does not update object with generated id

18 views Asked by At

I'm inserting using DSL context:

val userRecord = create.newRecord(ITR_NE_USER, user)
val x = create.executeInsert(userRecord)

I would expect userRecord to be updated with the generated ID (this is Kotlin) - it's still null after the insert.

How do I make it give me the value back?

0

There are 0 answers