concurrency

This commit is contained in:
2026-10-08 13:08:31 +03:00
parent b95197a6fc
commit 65bd58c409
42 changed files with 743 additions and 224 deletions
@@ -4,6 +4,7 @@ import jakarta.persistence.*;
import lombok.*;
import java.time.Instant;
import java.time.temporal.ChronoUnit;
import java.util.UUID;
@Entity
@@ -34,6 +35,6 @@ public class Message {
@PrePersist
private void onCreate() {
this.createdAt = Instant.now();
this.createdAt = Instant.now().truncatedTo(ChronoUnit.MILLIS);
}
}