UUIDEntityId

open class UUIDEntityId(val value: String = newId()) : EntityId<String>

A common EntityId implementation that uses UUID strings as identifiers. This class can be extended by entities that require a unique identifier.

Parameters

value

The UUID string value of the identifier. If not provided, a new UUID will be generated.

Constructors

Link copied to clipboard
constructor(value: String = newId())

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val value: String

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Compares two EntityId instances based on their underlying values.

Link copied to clipboard
open override fun hashCode(): Int

Generates a hash code based on the underlying identifier value.

Link copied to clipboard