Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New flow of upgrade: prepare MigrationEntity list before CTLSchema an…
…d BaseSchema inserts
- Loading branch information
Showing
3 changed files
with
108 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
...ation-0.9.0-0.10.0/src/main/java/org/kaaproject/data_migration/model/MigrationEntity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package org.kaaproject.data_migration.model; | ||
|
||
import org.kaaproject.kaa.common.dto.BaseSchemaDto; | ||
import org.kaaproject.kaa.common.dto.ctl.CTLSchemaDto; | ||
|
||
/** | ||
* Created by user482400 on 09.08.16. | ||
*/ | ||
public class MigrationEntity { | ||
private CTLSchemaDto ctl; | ||
private BaseSchemaDto baseSchema; | ||
|
||
public MigrationEntity() { | ||
} | ||
|
||
public MigrationEntity(CTLSchemaDto ctl, BaseSchemaDto baseSchema) { | ||
this.ctl = ctl; | ||
this.baseSchema = baseSchema; | ||
} | ||
|
||
public CTLSchemaDto getCtl() { | ||
return ctl; | ||
} | ||
|
||
public void setCtl(CTLSchemaDto ctl) { | ||
this.ctl = ctl; | ||
} | ||
|
||
public BaseSchemaDto getBaseSchema() { | ||
return baseSchema; | ||
} | ||
|
||
public void setBaseSchema(BaseSchemaDto baseSchema) { | ||
this.baseSchema = baseSchema; | ||
} | ||
} |