...
Now development continues and breaking changes occur. This could look like this :
When the project is saved the following information is entered in the versions table
Component | Version |
---|---|
Framework | 1.2 |
Plugin1 | 0.6.1 |
Plugin2 | 1.1 |
Now when that project is loaded the information is this:
Component | Version |
---|---|
Framework | 1.3 |
Plugin1 | 0.6.1 |
Plugin2 | 1.2 |
Both framework and plugin2 have new versions. DeltaShell has find to 1.2 to 1.3 mappings for framework and 1.1 to 1.2 mappings for plugin2. Since not all entities change the logic is as follows.
Per mapping file:
1 Try to find exact match for the version that is in the db. So for entity River of plugin2 try to find the mapping river.hbm.1.1.xml
2 If this is not found try to find the first earlier version and use this.
3 If none found use the 'normal' hbm.xml.