使用原生 UUID。
parent
55395ed327
commit
7a44c43402
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue