Subversion Repositories SmartDukaan

Rev

Rev 7186 | Rev 7403 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7186 Rev 7398
Line 80... Line 80...
80
		// destinationDbPath = args[1];
80
		// destinationDbPath = args[1];
81
		// dryRun = args[2];
81
		// dryRun = args[2];
82
		// }
82
		// }
83
		//
83
		//
84
		ContentMigrator contentmigrator = new ContentMigrator(sourceDbPath,destinationDbPath);
84
		ContentMigrator contentmigrator = new ContentMigrator(sourceDbPath,destinationDbPath);
85
		contentmigrator.migrateTabletsBack();
85
		contentmigrator.updateModelForBBQ10();
86
 
86
 
87
	}
87
	}
-
 
88
	
-
 
89
	private void updateModelForBBQ10() throws Exception{
-
 
90
		Long entityId = 1007315l;
-
 
91
		EntityState e1 = CreationUtils.getEntityState(entityId);
-
 
92
		Entity e2 = CreationUtils.getEntity(entityId);
-
 
93
		e1.setModelName("Blcakberry Q10");
-
 
94
		e2.setModelName("Blcakberry Q10");
-
 
95
		CreationUtils.updateEntity(e2);
-
 
96
		CreationUtils.updateEntityState(e1);
-
 
97
	}
88
 
98
 
89
	private void migrateWarrantyForCategory(Long catgoryId) throws Exception {
99
	private void migrateWarrantyForCategory(Long catgoryId) throws Exception {
90
		Collection<Entity> entities = CreationUtils.getEntities(catgoryId);
100
		Collection<Entity> entities = CreationUtils.getEntities(catgoryId);
91
		int count = 0;
101
		int count = 0;
92
		for (Entity entity : entities) {
102
		for (Entity entity : entities) {