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

Steve Ebersole steve at hibernate.org
Wed Feb 7 10:08:20 EST 2018


Ok, so this is the crux then because it really comes down to whether you
believe whether it is valid to *only* export the annotation-based
validations as DDL.

And keep in mind that this code is basically unchanged from all the way
back to the initial "integrations" with HV.  So back then the
thought-process (not mine, btw) was that yes, that *is* valid - hence the
option to chose just DDL as an option.

But if thats now no longer valid then that changes things.



On Tue, Feb 6, 2018 at 3:15 PM Guillaume Smet <guillaume.smet at gmail.com>
wrote:

> 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