Hibernate problems with Auto Increment ID MYSQL 5

前端 未结 2 1574
耶瑟儿~
耶瑟儿~ 2020-12-03 19:08

So, I just stood up a Spring Hibernate app and I can\'t seem to get my mapping file right. I am using MySql 5 and an auto incrementing key. Here is the ID portion of my mapp

2条回答
  •  情书的邮戳
    2020-12-03 19:31

    "Increment" generator is not cluster friendly. If some other process inserts into the same table. Next insert from hibernate will fail

提交回复
热议问题