Issue Type: Bug Bug
Affects Versions: 4.1.10
Assignee: Unassigned
Components: core
Created: 15/Mar/13 1:57 AM
Description:

Hello,

As part of issue HHH-4489, session.refresh(String entityName, Object obj) is already added. But there is still a 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";
		}
	};
Environment: independent
Project: Hibernate ORM
Labels: core
Priority: Major Major
Reporter: Pawel Omelko
Original Estimate: 8h
Remaining Estimate: 8h
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira