entityToModelWithExpectedId

abstract fun entityToModelWithExpectedId(entity: E, expectedId: I): M(source)

Mapper to convert from given entity to model replacing its id with given expected id

Return

Model built from given entity with expected id

Parameters

entity

Entity to convert

expectedId

Expected id to with which to replace actual id