HHH-10956 put one line if in {}

This commit is contained in:
Jason Pyeron 2020-04-22 20:16:44 -04:00 committed by Andrea Boriero
parent e37a8da568
commit 42b38b60cf
1 changed files with 3 additions and 1 deletions

View File

@ -376,7 +376,9 @@ public abstract class AbstractEntityTuplizer implements EntityTuplizer {
final String name = names[i];
final Property p = ((Component) identifier).getProperty(name);
final SimpleValue v = (SimpleValue) p.getValue();
if ( v.getIdentifierGenerator() == null ) throw new NullPointerException("No IdentifierGenerator found for property "+name);
if ( v.getIdentifierGenerator() == null ) {
throw new NullPointerException("No IdentifierGenerator found for property "+name);
}
}
catch (Throwable t) {
throw new HibernateException( "No part of a composite identifier may be null", t );