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 idkarelpeeters
12/25/2018, 2:04 PMD can be nullable, right?Czar
12/25/2018, 2:18 PMCzar
12/26/2018, 6:17 AMclass Entity<T: Long?>(val id: T = null)
there is an error:
can not be a value of a non-null typeNullT