Skip to content

Latest commit

 

History

History

micro-migration-demo

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

micro-migration-examples

Examples for the MicroMigration-Library

Currently contains four major examples:

Example with ExplicitMigrater

In the package software.xdev.micromigration.examples.explicit there is a simple example with explicitly listed upgrade scripts. This is the most straight forward approach to use migration scripts.

Example with ReflectiveMigrater

In package software.xdev.micromigration.examples.reflective a migrater which finds it's scripts through reflection is used. So here all MicroMigrationScripts in the defined software.xdev.micromigration.examples.reflective.scripts package are used.

Practical examples

The package software.xdev.micromigration.examples.practical.embedded contains examples that are just a bit more complex than the other examples and should allow an insight about the usage in a practical environment.

There is one example implemented with the MigrationEmbeddedStorageManager and another with the plain MigrationManager, so it is clear what the difference between these two approaches is. In both implementations the first update migrates from version 0 to 1 and converts an "old" BusinessBranch to a newer one. The second update only adds more Customers to the existing BusinessBranch.