HHH-8074 CascadingAction REFRESH should pass the entityName

This commit is contained in:
Brett Meyer 2013-10-09 21:28:20 -04:00
parent 6863c3da82
commit 4d04f40fe0
3 changed files with 4 additions and 4 deletions

View File

@ -155,7 +155,7 @@ public class CascadingActions {
boolean isCascadeDeleteEnabled)
throws HibernateException {
LOG.tracev( "Cascading to refresh: {0}", entityName );
session.refresh( child, (Map) anything );
session.refresh( entityName, child, (Map) anything );
}
@Override

View File

@ -71,7 +71,7 @@ public interface EventSource extends SessionImplementor, Session {
/**
* Cascade refresh an entity instance
*/
public void refresh(Object object, Map refreshedAlready) throws HibernateException;
public void refresh(String entityName, Object object, Map refreshedAlready) throws HibernateException;
/**
* Cascade delete an entity instance
*/

View File

@ -1135,8 +1135,8 @@ public final class SessionImpl extends AbstractSessionImpl implements EventSourc
fireRefresh( new RefreshEvent( entityName, object, lockOptions, this ) );
}
public void refresh(Object object, Map refreshedAlready) throws HibernateException {
fireRefresh( refreshedAlready, new RefreshEvent( object, this ) );
public void refresh(String entityName, Object object, Map refreshedAlready) throws HibernateException {
fireRefresh( refreshedAlready, new RefreshEvent( entityName, object, this ) );
}
private void fireRefresh(RefreshEvent event) {