mp
08/01/2018, 7:34 PMalexfacciorusso
08/03/2018, 10:06 AMmp
08/03/2018, 12:13 PMdata class Entity(val id:String, val name: String, val i: Int, val description: String)
class EntityDTO(val id:String) {
val name: String?
val i: Int?
val description: String?
}
and give few ext functions Entitiy.toDTO, EntityDTO.toModel(btw - want to try implement automation for this with KAPT, don't know will this bicycle give any benefits) and validation function and hardly control or incomes in controller layer an it will keep nulls from internals of app/system. Of course it isn't silver bullet