mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-27 14:30:16 +00:00
HHH-8550 - Order of remove/delete calls important for associated data
This commit is contained in:
parent
f2b272f468
commit
0062600296
@ -101,6 +101,7 @@ protected void configure(Configuration cfg) {
|
||||
Default.class.getName() + ", " + Strict.class.getName()
|
||||
);
|
||||
cfg.setProperty( "hibernate.validator.apply_to_ddl", "false" );
|
||||
cfg.setProperty( "javax.persistence.validation.mode", "auto" );
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -87,5 +87,6 @@ public String interpolate(String s, Context context, Locale locale) {
|
||||
configuration.messageInterpolator( messageInterpolator );
|
||||
ValidatorFactory vf = configuration.buildValidatorFactory();
|
||||
cfg.getProperties().put( "javax.persistence.validation.factory", vf );
|
||||
cfg.setProperty( "javax.persistence.validation.mode", "AUTO" );
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user