Home > Back-end >  JPA set the primary key of the strategy for the entity instance identity, not to commit the transact
JPA set the primary key of the strategy for the entity instance identity, not to commit the transact

Time:09-24

JPA set the primary key of the strategy for the entity instance identity, why not to commit the transaction background that have the Insert statement, but do not check in the database table that records
Strange is inserted to perform a transaction and submitted to the database, the corresponding record the primary key of discontinuity,



some of these records are before, this time because there is no submit so there is no check to the primary key for the record of 16, but the background gives an inset log statements, what reason is this?
will commit let go, and then perform a


The insertion is successful, the database table to check the record, but the primary key is not 16, 17, but the last inserted record although there is no insert record of success has affected the later
What reason is this?


  • Related