hibernate uuid

来源:互联网 发布:逆袭网络剧全集观看 编辑:程序博客网 时间:2024/06/06 23:54
@Id
@GenericGenerator(name = "system-uuid", strategy ="uuid.hex")
@GeneratedValue(generator ="system-uuid") 

主键id必须为String类型,不然要报错
0 0
原创粉丝点击