Hello, There is still problem with CascadeAction.REFRESH. It does not pass an entityName.
public static final CascadingAction REFRESH = new CascadingAction() { @Override public void cascade(EventSource session, Object child, String entityName, Object anything, boolean isCascadeDeleteEnabled) throws HibernateException { LOG.tracev( "Cascading to refresh: {0}", entityName ); session.refresh( child, (Map) anything ); } @Override public Iterator getCascadableChildrenIterator(EventSource session, CollectionType collectionType, Object collection) { // refresh doesn't cascade to uninitialized collections return getLoadedElementsIterator(session, collectionType, collection); } @Override public boolean deleteOrphans() { return false; } @Override public String toString() { return "ACTION_REFRESH"; } };
Hello,
There is still problem with CascadeAction.REFRESH. It does not pass an entityName.