Lamberto Basti
context(Transaction) public fun TestTable.updateTestTableById(parameter: Int, dto: TestTableDTO): Int = update({ id eq parameter }) { statement -> statement[id] = requireNotNull(dto.id) { "TestTableDTO.$id is null" } statement[name] = requireNotNull(dto.name) { "TestTableDTO.$name is null" } statement[surname] = dto.surname statement[aLong] = requireNotNull(dto.aLong) { "TestTableDTO.$aLong is null" } }
A modern programming language that makes developers happier.