Spring Data JPA主键采用UUID策略

Spring Data JPA主键采用UUID策略

@Id
@GeneratedValue(generator="system_uuid")
@GenericGenerator(name="system_uuid",strategy="uuid")
private String id;

你可能感兴趣的:(Spring Data JPA主键采用UUID策略)