Fix a typo in a variable name

This commit is contained in:
Dmitry Matveev 2018-08-15 18:07:02 +03:00 committed by Guillaume Smet
parent fc667eca2d
commit 7ee3001565
1 changed files with 2 additions and 2 deletions

View File

@ -375,12 +375,12 @@ public class CascadingActions {
&& !isInManagedState( child, session ) && !isInManagedState( child, session )
&& !(child instanceof HibernateProxy) //a proxy cannot be transient and it breaks ForeignKeys.isTransient && !(child instanceof HibernateProxy) //a proxy cannot be transient and it breaks ForeignKeys.isTransient
&& ForeignKeys.isTransient( childEntityName, child, null, session ) ) { && ForeignKeys.isTransient( childEntityName, child, null, session ) ) {
String parentEntiytName = persister.getEntityName(); String parentEntityName = persister.getEntityName();
String propertyName = persister.getPropertyNames()[propertyIndex]; String propertyName = persister.getPropertyNames()[propertyIndex];
throw new TransientPropertyValueException( throw new TransientPropertyValueException(
"object references an unsaved transient instance - save the transient instance before flushing", "object references an unsaved transient instance - save the transient instance before flushing",
childEntityName, childEntityName,
parentEntiytName, parentEntityName,
propertyName propertyName
); );