16 lines
356 B
Kotlin
16 lines
356 B
Kotlin
package eventDemo.app.entity
|
|
|
|
import eventDemo.libs.event.AggregateId
|
|
import eventDemo.shared.GameIdSerializer
|
|
import kotlinx.serialization.Serializable
|
|
import java.util.UUID
|
|
|
|
/**
|
|
* An [AggregateId] for a game.
|
|
*/
|
|
@JvmInline
|
|
@Serializable(with = GameIdSerializer::class)
|
|
value class GameId(
|
|
override val id: UUID = UUID.randomUUID(),
|
|
) : AggregateId
|