On 15 mai 2012, at 19:50, Gunnar Morling wrote:
I also find disabling validation of @NotNull by default problematic.
If I'm for instance using sequences for id generation, then @NotNull
should be validated upon insertion. But relying on sequences is IMO
per se not portable; so when deciding to use them, I'd also expect
@NotNull to be validated.
I think you misunderstood something. If sequence, table generation or any in memory
generation logic is used, then @NoNull will indeed be validated in option #3. In fact,
database trigger and column id generations are the only one that would disable
validation.