mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-10 05:04:52 +00:00
HHH-10956 put one line if in {}
This commit is contained in:
parent
e37a8da568
commit
42b38b60cf
@ -376,7 +376,9 @@ public Object getIdentifier(Object entity, EntityMode entityMode, SharedSessionC
|
||||
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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user