Is there a difference in declaring the enabled variable as Boolean or boolean? Which is preferable from a memory footprint perspective.
@Entity class User {
They'll both map to the same column type.
From a memory perspective, a primitive would probably be a little lighter, but the difference is almost certainly going to be negligible.
I think a primitive would make it non-nullable, but you could also do that with an annotation.