diff options
author | Kajur, Harish (vk250x) <vk250x@att.com> | 2019-04-18 09:13:25 -0400 |
---|---|---|
committer | Kajur, Harish (vk250x) <vk250x@att.com> | 2019-04-18 10:07:58 -0400 |
commit | 5fe83113ca259a5220c37dc0b07c05ed321db659 (patch) | |
tree | 21626add47932923f45a24c823497d006faf5b9d /src | |
parent | 5dc2f95ceb355d2e6db4ee35ec14fdfd86a1cb3d (diff) |
Fix the bug in running migrations
Issue-ID: AAI-2385
Change-Id: Ia5a66d219b71a0515bdf08758f04a58ac76aed93
Signed-off-by: Kajur, Harish (vk250x) <vk250x@att.com>
Diffstat (limited to 'src')
6 files changed, 6 insertions, 6 deletions
diff --git a/src/main/java/org/onap/aai/dbgen/DupeTool.java b/src/main/java/org/onap/aai/dbgen/DupeTool.java index 17f4405..800e9a4 100644 --- a/src/main/java/org/onap/aai/dbgen/DupeTool.java +++ b/src/main/java/org/onap/aai/dbgen/DupeTool.java @@ -528,7 +528,7 @@ public class DupeTool { throw aai; } LoaderFactory loaderFactory = ctx.getBean(LoaderFactory.class); - SchemaVersions schemaVersions = ctx.getBean(SchemaVersions.class); + SchemaVersions schemaVersions = (SchemaVersions) ctx.getBean("schemaVersions"); DupeTool dupeTool = new DupeTool(loaderFactory, schemaVersions); dupeTool.execute(args); }// end of main() diff --git a/src/main/java/org/onap/aai/dbgen/DynamicPayloadGenerator.java b/src/main/java/org/onap/aai/dbgen/DynamicPayloadGenerator.java index ecd95a7..dec6a85 100644 --- a/src/main/java/org/onap/aai/dbgen/DynamicPayloadGenerator.java +++ b/src/main/java/org/onap/aai/dbgen/DynamicPayloadGenerator.java @@ -171,7 +171,7 @@ public class DynamicPayloadGenerator { }
LoaderFactory loaderFactory = ctx.getBean(LoaderFactory.class);
EdgeIngestor edgeIngestor = ctx.getBean(EdgeIngestor.class);
- SchemaVersions schemaVersions = ctx.getBean(SchemaVersions.class);
+ SchemaVersions schemaVersions = (SchemaVersions) ctx.getBean("schemaVersions");
run (loaderFactory, edgeIngestor, schemaVersions, args, true);
}
diff --git a/src/main/java/org/onap/aai/dbgen/schemamod/SchemaMod.java b/src/main/java/org/onap/aai/dbgen/schemamod/SchemaMod.java index 9fc18eb..d1c283f 100644 --- a/src/main/java/org/onap/aai/dbgen/schemamod/SchemaMod.java +++ b/src/main/java/org/onap/aai/dbgen/schemamod/SchemaMod.java @@ -182,7 +182,7 @@ public class SchemaMod { throw aai; } LoaderFactory loaderFactory = ctx.getBean(LoaderFactory.class); - SchemaVersions schemaVersions = ctx.getBean(SchemaVersions.class); + SchemaVersions schemaVersions = (SchemaVersions) ctx.getBean("schemaVersions"); SchemaMod schemaMod = new SchemaMod(loaderFactory, schemaVersions); schemaMod.execute(args); diff --git a/src/main/java/org/onap/aai/migration/MigrationController.java b/src/main/java/org/onap/aai/migration/MigrationController.java index ecc0434..abd4648 100644 --- a/src/main/java/org/onap/aai/migration/MigrationController.java +++ b/src/main/java/org/onap/aai/migration/MigrationController.java @@ -79,7 +79,7 @@ public class MigrationController { LoaderFactory loaderFactory = ctx.getBean(LoaderFactory.class); EdgeIngestor edgeIngestor = ctx.getBean(EdgeIngestor.class); EdgeSerializer edgeSerializer = ctx.getBean(EdgeSerializer.class); - SchemaVersions schemaVersions = ctx.getBean(SchemaVersions.class); + SchemaVersions schemaVersions = (SchemaVersions) ctx.getBean("schemaVersions"); MigrationControllerInternal internal = new MigrationControllerInternal(loaderFactory, edgeIngestor, edgeSerializer, schemaVersions); diff --git a/src/main/java/org/onap/aai/util/SendDeleteMigrationNotificationsMain.java b/src/main/java/org/onap/aai/util/SendDeleteMigrationNotificationsMain.java index e559a78..a94b435 100644 --- a/src/main/java/org/onap/aai/util/SendDeleteMigrationNotificationsMain.java +++ b/src/main/java/org/onap/aai/util/SendDeleteMigrationNotificationsMain.java @@ -67,7 +67,7 @@ public class SendDeleteMigrationNotificationsMain { throw aai; } LoaderFactory loaderFactory = ctx.getBean(LoaderFactory.class); - SchemaVersions schemaVersions = ctx.getBean(SchemaVersions.class); + SchemaVersions schemaVersions = (SchemaVersions) ctx.getBean("schemaVersions"); String basePath = ctx.getEnvironment().getProperty("schema.uri.base.path"); CommandLineDeleteArgs cArgs = new CommandLineDeleteArgs(); diff --git a/src/main/java/org/onap/aai/util/SendMigrationNotificationsMain.java b/src/main/java/org/onap/aai/util/SendMigrationNotificationsMain.java index 6ae2bb4..17a127a 100644 --- a/src/main/java/org/onap/aai/util/SendMigrationNotificationsMain.java +++ b/src/main/java/org/onap/aai/util/SendMigrationNotificationsMain.java @@ -68,7 +68,7 @@ public class SendMigrationNotificationsMain { throw aai; } LoaderFactory loaderFactory = ctx.getBean(LoaderFactory.class); - SchemaVersions schemaVersions = ctx.getBean(SchemaVersions.class); + SchemaVersions schemaVersions = (SchemaVersions) ctx.getBean("schemaVersions"); String basePath = ctx.getEnvironment().getProperty("schema.uri.base.path"); CommandLineArgs cArgs = new CommandLineArgs(); |