package com.github.solairerove.woodstock.job;

import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

@Component
public class MyBean implements CommandLineRunner {

    public void run(String... args) {
        System.out.println("Hello from test job");
    }
}
@@ -51,251 +51,708 @@
 ort 
-org.springframework.boot.CommandLineRunner;%0Aimport org.springframework.stereotype.Component;%0A%0A@Component%0Apublic class MyBean implements CommandLineRunner %7B%0A%0A    public void run(String... args) %7B%0A        System.out.println(%22Hello from test job%22
+com.github.solairerove.woodstock.domain.Unit;%0Aimport com.github.solairerove.woodstock.repository.UnitRepository;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.boot.CommandLineRunner;%0Aimport org.springframework.stereotype.Component;%0A%0A@Component%0Apublic class MyBean implements CommandLineRunner %7B%0A%0A    private final UnitRepository repository;%0A%0A    @Autowired%0A    public MyBean(UnitRepository repository) %7B%0A        this.repository = repository;%0A    %7D%0A%0A    public void run(String... args) %7B%0A        Unit unit = new Unit();%0A        unit.setLabel(%22%22);%0A        unit.setAvatar(%22%22);%0A        unit.setDescription(%22%22);%0A%0A        System.out.println(repository.save(unit)
 );%0A 

Write simple job with adding unit domain