Hiberante+jpa,注解生成32字符的Id

@Id
@GenericGenerator(name = "id-generator", strategy = "uuid")
@GeneratedValue(generator = "id-generator",strategy = GenerationType.IDENTITY)
private String id;

  或者

@Id
@GenericGenerator(name = "id-generator", strategy = "uuid")
@GeneratedValue(generator = "id-generator",strategy = GenerationType.IDENTITY)
private String id; 
上一篇:Cordova之如何用命令行创建一个项目(完整示例)


下一篇:C# Winform中的窗体传值