Join Slack
in jpa, do you think it is a good choice to have not nullable primitive column attributes annotated ...
# spring
p
Pere Casafont
02/26/2018, 3:11 AM
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
lovis
02/26/2018, 12:06 PM
i’d go for
?
, since you’ve got language features at hand to deal with it (
?.
,
!!
), while
-1
or
0
are kind of obscure.
3
Views
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by