Map<Object, Object> replaces = fusedCollectionActions.getReplaces(); if (replaces.size() != 0 || embeddablesToUpdate != null && !embeddablesToUpdate.isEmpty()) { UpdateCriteriaBuilder<?> updateCb = context.getEntityViewManager().getCriteriaBuilderFactory().updateCollection(context.getEntityManager(), ownerEntityClass, "e", mapping); updateCb.setExpression(mapping, ":element"); updateCb.setWhereExpression(ownerIdWhereFragment);
List<FusedCollectionIndexActions.IndexTranslateOperation> translations = indexActions.getTranslations(); if (translations.size() != 0) { UpdateCriteriaBuilder<?> updateCb = context.getEntityViewManager().getCriteriaBuilderFactory().updateCollection(context.getEntityManager(), ownerEntityClass, "e", mapping); updateCb.setExpression("INDEX(" + mapping + ")", "INDEX(" + mapping + ") + :offset"); updateCb.setWhereExpression(ownerIdWhereFragment); UpdateCriteriaBuilder<?> updateCb = context.getEntityViewManager().getCriteriaBuilderFactory().updateCollection(context.getEntityManager(), ownerEntityClass, "e", mapping); updateCb.setExpression(mapping, ":element"); updateCb.setWhereExpression(ownerIdWhereFragment);