I don't know correct channel to post this question. I'll delete from getting started if it belongs only in spring. I'll delete from spring if it belongs only in getting started.
Wesley Acheson
01/21/2020, 3:08 PM
Okay I deleted from #spring as I found a language only solution.
Copy code
data class ExampleProblem(
val id: Long,
val notNullableField: List<String> = emptyList()
}
i.e. don't provide a secondary constructor use a default value.