You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
io.requery.meta.NotMappedException: No mapping for [Lcom.organization.api.ms.database.tables.Driver_MasterEntity;
at io.requery.meta.ImmutableEntityModel.typeOf(ImmutableEntityModel.java:52) ~[requery-1.6.0.jar:?]
at io.requery.sql.EntityDataStore$DataContext.proxyOf(EntityDataStore.java:610) ~[requery-1.6.0.jar:?]
at io.requery.sql.EntityDataStore.upsert(EntityDataStore.java:280) ~[requery-1.6.0.jar:?]
at io.requery.sql.KotlinEntityDataStore.upsert(KotlinEntityDataStore.kt:129) ~[requery-kotlin-1.6.0.jar:?]
The text was updated successfully, but these errors were encountered:
fun insertDriverToMasterTable(driverList: ArrayList<Driver>) { val entities = ArrayList<Driver_MasterEntity>() driverList.forEach { driver -> val entity = Driver_MasterEntity() entity.vehicleId = driver.trucknumber entity.driverId = driver.DRIVERID entity.driverName = driver.NAME entity.driverInactive = driver.driverinactive ?: false entity.trainingAttended = driver.TRAINING ?: false entity.mobile = driver.mobile entity.driverHomeCountry = driver.land1 entity.licenseNo = driver.licnecenum entities.add(entity) } try { val array = arrayOfNulls<Driver_MasterEntity>(entities.size) data.upsert(entities.toArray(array)) } catch (e: StatementExecutionException) { log.e("Exception while upserting to Driver Master table") } }
It throws following exception:
io.requery.meta.NotMappedException: No mapping for [Lcom.organization.api.ms.database.tables.Driver_MasterEntity;
at io.requery.meta.ImmutableEntityModel.typeOf(ImmutableEntityModel.java:52) ~[requery-1.6.0.jar:?]
at io.requery.sql.EntityDataStore$DataContext.proxyOf(EntityDataStore.java:610) ~[requery-1.6.0.jar:?]
at io.requery.sql.EntityDataStore.upsert(EntityDataStore.java:280) ~[requery-1.6.0.jar:?]
at io.requery.sql.KotlinEntityDataStore.upsert(KotlinEntityDataStore.kt:129) ~[requery-kotlin-1.6.0.jar:?]
The text was updated successfully, but these errors were encountered: