Stelios Papamichail
08/01/2024, 12:32 PMChantal Loncle
08/05/2024, 3:25 AMnew()
to confirm before the entity gets flushed and the attempt is made to prepare the batch insert statement:
class PhdInstitutionEntity(id: EntityID<Int>) : IntEntity(id) {
companion object : IntEntityClass<PhdInstitutionEntity>(PhdInstitutionsTable) {
override fun new(init: PhdInstitutionEntity.() -> Unit): PhdInstitutionEntity {
val newInstitution = super.new(init)
newInstitution.writeValues.forEach { (column, value) ->
println("Received $value for column ${column.name}")
}
return newInstitution
}
}
// ... entity fields
}
If all columns from PhdInstitutionsTable
are accounted for in the new entity's writeValues
and this exception is still thrown, please consider sharing a sample project on YouTrack so we can look further into our internal statement validation. Please also share any other relevant details, like the Exposed version and database being used.