使用原生 UUID。

pull/1/head
ZhouXY108 2023-03-17 18:44:51 +08:00
parent 55395ed327
commit 7a44c43402
1 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,7 @@
package xyz.zhouxy.plusone.domain;
import cn.hutool.core.lang.UUID;
import java.util.UUID;
import lombok.Getter;
/**
@ -20,7 +21,7 @@ public abstract class DomainEvent {
private long happenedAt;
protected DomainEvent() {
this.identifier = UUID.randomUUID().toString(true);
this.identifier = UUID.randomUUID().toString();
this.happenedAt = System.currentTimeMillis();
}
}