Class R54600TranslationDataMigration
- java.lang.Object
-
- com.xpn.xwiki.store.migration.hibernate.AbstractHibernateDataMigration
-
- com.xpn.xwiki.store.migration.hibernate.R54600TranslationDataMigration
-
- All Implemented Interfaces:
DataMigration,HibernateDataMigration
@Component @Named("R54600Translation") @Singleton public class R54600TranslationDataMigration extends AbstractHibernateDataMigrationFix any existing mistake with document translation field. It should be synchronized with the language.This kind of mistake should not be possible anymore with the fix for XWIKI-11110.
- Since:
- 5.4.6
- Version:
- $Id: 9856fda928e49109a1fdd87bdabb357dd0a93442 $
-
-
Field Summary
-
Fields inherited from class com.xpn.xwiki.store.migration.hibernate.AbstractHibernateDataMigration
componentManager, manager
-
-
Constructor Summary
Constructors Constructor Description R54600TranslationDataMigration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription()XWikiDBVersiongetVersion()voidhibernateMigrate()Execute the migration itself.-
Methods inherited from class com.xpn.xwiki.store.migration.hibernate.AbstractHibernateDataMigration
getCurrentDBVersion, getLiquibaseChangeLog, getName, getPreHibernateLiquibaseChangeLog, getStore, getXWikiContext, migrate, shouldExecute
-
-
-
-
Method Detail
-
getDescription
public String getDescription()
- Returns:
- a description of what the data migration does
-
getVersion
public XWikiDBVersion getVersion()
- Returns:
- data version which need migration. before you commit stuff which needs migration, you need write data migration with version = current release number (i.e 32000 for release 3.2).
-
hibernateMigrate
public void hibernateMigrate() throws DataMigrationException, XWikiExceptionDescription copied from class:AbstractHibernateDataMigrationExecute the migration itself.- Specified by:
hibernateMigratein classAbstractHibernateDataMigration- Throws:
DataMigrationException- on migration error.XWikiException- on error from the store.
-
-