Search in sources :

Example 6 with Car

use of ua.springboot.web.entity.Car in project Logos_Materials_October_2017 by VolodymyrZavada.

the class CarController method generate.

@GetMapping("jsvksdjvjd/generate")
public String generate() {
    for (int i = 0; i < 200; i++) {
        Car car = new Car();
        car.setMake("CarMake #" + i);
        car.setModel("CarModel #" + i);
        carService.saveCar(car);
    }
    return "redirect:/car/cars";
}
Also used : Car(ua.springboot.web.entity.Car) GetMapping(org.springframework.web.bind.annotation.GetMapping)

Aggregations

GetMapping (org.springframework.web.bind.annotation.GetMapping)6 Car (ua.springboot.web.entity.Car)6 CarFilter (ua.springboot.web.domain.CarFilter)1 CarMakeFilter (ua.springboot.web.domain.CarMakeFilter)1