[hibernate-dev] ORM DDL doesn't reflect BV constraints with validation mode CALLBACK

Guillaume Smet guillaume.smet at gmail.com
Tue Feb 6 16:15:17 EST 2018


Hi,

On Tue, Feb 6, 2018 at 5:01 PM, Steve Ebersole <steve at hibernate.org> wrote:
>
> Is it valid for a user to want *just* DDL-based validation?  How would that
> work in Gunnar's request?
>

>From your writings, I suspect I'm the only one with this opinion but my
answer would be: "not if you use Bean Validation annotations".

If you use BV's @NotNull, you expect BV to validate the input. And you
might want additional DDL in your database to be on the safe side (which
should be the default IMHO).

-- 
Guillaume


More information about the hibernate-dev mailing list