Access to auto increment identity field after SQL insert in Java

前端 未结 5 581
栀梦
栀梦 2020-12-28 18:00

Any advice on how to read auto-incrementing identity field assigned to newly created record from call through java.sql.Statement.executeUpdate?

I know h

5条回答
  •  温柔的废话
    2020-12-28 18:27

    @ScArcher2 : I agree, Hibernate needs to make a second call to get the newly generated identity UNLESS an advanced generator strategy is used (sequence, hilo...)

提交回复
热议问题