@Component @Named(value="R1138000XWIKI16709") @Singleton public class R1138000XWIKI16709DataMigration extends AbstractHibernateDataMigration
XWikiUsersDocumentInitializer
to put the property on the xclass: when the
XClassMigratorListener will be called, the properties will be already present in the objects, so we avoid a new save.
NB: The minor version of the migration is incremented with 30 because of a previous migration in 11 cycle badly
named.componentManager, manager
Constructor and Description |
---|
R1138000XWIKI16709DataMigration() |
Modifier and Type | Method and Description |
---|---|
String |
getDescription() |
XWikiDBVersion |
getVersion() |
protected void |
hibernateMigrate()
Execute the migration itself.
|
getCurrentDBVersion, getLiquibaseChangeLog, getName, getPreHibernateLiquibaseChangeLog, getStore, getXWikiContext, migrate, shouldExecute
public String getDescription()
public XWikiDBVersion getVersion()
protected void hibernateMigrate() throws DataMigrationException, XWikiException
AbstractHibernateDataMigration
hibernateMigrate
in class AbstractHibernateDataMigration
DataMigrationException
- on migration error.XWikiException
- on error from the store.Copyright © 2004–2022 XWiki. All rights reserved.