Subversion Repositories SmartDukaan

Rev

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

Rev 7403 Rev 7507
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.updateModelForBBQ10();
85
		List<Long> entityId = Arrays.asList(1001674l,1002575l,1005331l,1005165l,1005164l,1005111l,1005109l,1004952l,1004940l,1004871l,1004701l,1004429l,1004197l,1006174l,1006077l,1005901l,1005757l,1005754l,1005724l,1005704l,1005598l,1005576l,1005558l,1007394l,1007230l,1007226l,1007218l,1007089l,1006925l,1006822l,1006814l,1006175l);
-
 
86
		for (Long eId : entityId){
-
 
87
			contentmigrator.touchEntityState(eId);
-
 
88
		}
86
 
89
 
87
	}
90
	}
88
	
91
	
-
 
92
	
-
 
93
	private void touchEntityState(Long eId) throws Exception {
-
 
94
		EntityState es = CreationUtils.getEntityState(eId);
-
 
95
		es.setMerkedReadyOn(new Date());
-
 
96
		CreationUtils.updateEntityState(es);
-
 
97
		System.out.println("Touched " + eId + " successfully!");
-
 
98
	}
89
	private void updateModelForBBQ10() throws Exception{
99
	private void updateModelForBBQ10() throws Exception{
90
		Long entityId = 1007315l;
100
		Long entityId = 1007315l;
91
		EntityState e1 = CreationUtils.getEntityState(entityId);
101
		EntityState e1 = CreationUtils.getEntityState(entityId);
92
		Entity e2 = CreationUtils.getEntity(entityId);
102
		Entity e2 = CreationUtils.getEntity(entityId);
93
		e1.setModelName("Blackkberry Q10");
103
		e1.setModelName("Blackkberry Q10");