Jooq - 插入不会使用生成的 id 更新对象

问题描述 投票:0回答:1

我正在使用 DSL 上下文插入:

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

我希望

userRecord
能够使用生成的 ID 进行更新(这是 Kotlin) - 插入后它仍然为空。

如何让它给我带来价值?

kotlin jooq
1个回答
0
投票

只需致电

userRecord.insert();
© www.soinside.com 2019 - 2024. All rights reserved.