时间:2021-07-01 10:21:17 帮助过:18人阅读
1 @Id 2 @GeneratedValue(strategy = GenerationType.IDENTITY) 3 @GenericGenerator(name = "persistenceGenerator", strategy = "increment") 4 String id;
即可!
关于hibernate+mysql的ID自增如何添加数据
标签:generator code col hibernate name sql generated color type