martynas
04/15/2016, 4:58 PMdatabase.use {
transaction {
newEmployees.forEach {
insert(EmployeeTable.TBL_NAME,
EmployeeTable.ID to it.id,
EmployeeTable.FULL_NAME to it.fullName,
EmployeeTable.AVATAR_URL to it.avatarUrl,
EmployeeTable.CARD_ID to it.cardId,
EmployeeTable.CARD_SERIAL to it.cardSerial)
}
}
}