📜  什么是休眠序列表 - 任何代码示例

📅  最后修改于: 2022-03-11 15:00:12.141000             🧑  作者: Mango

代码示例1
// added
If you use strategy="AUTO", Hibernate will generate a table called hibernate_sequence to provide the next number for the ID sequence. You may have forgotten to add the AutoIncrement feature to your table's PK.

You may use generation strategy strategy="IDENTITY" to enforce using the AutoIncrement feature available in MySql and avoid creating a table.