It might be tempting to call com.xpn.xwiki.objects.classes.PropertyClass.setName(name) to rename a property but this is likely to cause a serious mess. This method should probably be updated to allow renaming a property in existing classes, and trigger a migration of the instances of the related class upon saving. |