@Id
@GeneratedValue(strategy=GenerationType.TABLE,generator="gen")
@TableGenerator(name = "gen", table = "tb_generator", pkColumnName = "gen_name", valueColumnName = "gen_value",
pkColumnValue = "GEN_PK", allocationSize = 1)
private Long id;
设置ID的生成策略;后台提示异常信息:
1.全部数据库通用的@GeneratedValue(generator="UUID")
2.useGeneratedKeys的@GeneratedValue(generator=\"JDBC\")
3.类似mysql数据库的@GeneratedValue(strategy=GenerationType.IDENTITY[,generator="Mysql"])
意思是不支持这种方式吗?
慕慕5256561
qq_慕斯6433432
youngledo
Crazynew
大叔_fighting
相关分类