/*
* Five cars for each model
*/
for (int i=0;i<5;i++) {
Car car = createCar(model, m);
/*
* attributes for each car
*/
Random rnd = new Random();
for (String attr : ATTRIBUTES) {
CarAttribute a = new CarAttribute();
a.setName(attr);
a.setStringValue(String.valueOf(rnd.nextInt(99999)));
a.setParent(car);
car.getAttributes().add (a);
}
}
}
boolean flag = false;