标签:generator code col hibernate name sql generated color type
在Bean实体类中的Id注解后跟
1 @Id 2 @GeneratedValue(strategy = GenerationType.IDENTITY) 3 @GenericGenerator(name = "persistenceGenerator", strategy = "increment") 4 String id;
即可!
标签:generator code col hibernate name sql generated color type
原文地址:https://www.cnblogs.com/JRXSR/p/9774606.html