HHH-8074 CascadingAction REFRESH should pass the entityName
This commit is contained in:
parent
6863c3da82
commit
4d04f40fe0
|
@ -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
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue