java - how hibernate insert record in middle of table? -
I have a thousand records table, I want to insert records in the middle. The object I am saving in the table is very complex, which is the convenient way to do this.
If you consider the order of data in the table, after the order of the primary key of the table, you Enter a record specifying primary key in pojo (id: employee.setId (25); ). But, if you do this, then you should not make the primary key * as * auto_increment *.
Comments
Post a Comment