findById

@GenerateBridge
open fun findById(id: Id): Uni<Entity?>

Find an entity of this type by ID.

Return

the entity found, or null if not found.

Parameters

id

the ID of the entity to find.


@CheckReturnValue
@GenerateBridge
open fun findById(id: Id, lockModeType: LockModeType): Uni<Entity>

Find an entity of this type by ID and lock it.

Return

the entity found, or null if not found.

Parameters

id

the ID of the entity to find.

lockModeType

the locking strategy to be used when retrieving the entity.