I have made this table:
object PartnerOwnerMappingTable : IntIdTable("partner_owner_mapping") {
val ownerId = integer("owner_id")
val driverUUID = uuid("driver_uuid")
val partnerUUID = uuid("partner_uuid")
val createdAt = timestampWithoutTZAsInstant("created_at")
val updatedAt = timestampWithoutTZAsInstant("updated_at")
}
And I'm trying to execute this statement using the exposedrepo.
PartnerOwnerMappingTable.insertIgnore {
it[this.ownerId] = record.ownerId
it[this.driverUUID] = record.driverUUID
it[this.partnerUUID] = record.partnerUUID
it[this.createdAt] = Instant.now()
it[this.updatedAt] = Instant.now()
}
But when I'm checking the database the data is not there.
I'm trying to use insertIgnore
but the data is not reflecting in the database.