Spring Data JPA主键采用UUID策略

2020-10-16 10:45:03 浏览数 (3)

Spring Data JPA主键采用UUID策略

代码语言:javascript复制
@Id
@GeneratedValue(generator="system_uuid")
@GenericGenerator(name="system_uuid",strategy="uuid")
private String id;

0 人点赞