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 8b7903dfc4
commit 013d528916
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 String name = names[i];
final Property p = ((Component) identifier).getProperty(name); final Property p = ((Component) identifier).getProperty(name);
final SimpleValue v = (SimpleValue) p.getValue(); 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) { catch (Throwable t) {
throw new HibernateException( "No part of a composite identifier may be null", t ); throw new HibernateException( "No part of a composite identifier may be null", t );