in jpa, do you think it is a good choice to have n...
# spring
p
in jpa, do you think it is a good choice to have not nullable primitive column attributes annotated with
?
? I use lateinit with non primitives, but I'm kind of uncomfortable having to initialize my ids to 0 or -1
l
i’d go for
?
, since you’ve got language features at hand to deal with it (
?.
,
!!
), while
-1
or
0
are kind of obscure.