ComboboxDataMigrationHelper

public class ComboboxDataMigrationHelper

Responsible for migrating data of Combobox fields between correct tables. Transfers data from entity table to Combobox table if selecting multiple values has been allowed. Also migrated data back to entity table if that option has been disallowed.

Methods

migrateComboboxDataIfNecessary

public void migrateComboboxDataIfNecessary(Entity parent, Entity draft)

Compares given entity with it’s draft and migrates data to proper table if multiple selections were allowed or disallowed.

Parameters:
  • parent – the parent entity
  • draft – the draft of the parent entity

setPersistenceManagerFactory

public void setPersistenceManagerFactory(PersistenceManagerFactory persistenceManagerFactory)

setSettingsService

public void setSettingsService(SettingsService settingsService)

setSqlDBManager

public void setSqlDBManager(SqlDBManager sqlDBManager)