karelpeeters
12/25/2018, 12:58 PMclass Entity<D: Int?>(val id: D)
and then keep the nullability in the type throughout the code.Czar
12/25/2018, 1:26 PMEntity
in this case? the id
has to be null
for hibernate to generate it, but with val id: D
I cannot assign null
to id
karelpeeters
12/25/2018, 2:04 PMD
can be nullable, right?Czar
12/25/2018, 2:18 PMclass Entity<T: Long?>(val id: T = null)
there is an error:
can not be a value of a non-null typeNull
T