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 5ed5656c29
commit b8b0fbc13c

View File

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