package urteam;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class urteamController {

	@RequestMapping("/")
	public String greeting(Model model) {

		model.addAttribute("name", "World");

		return "index";
	}

}

@@ -10,16 +10,119 @@
 rteam;%0A%0A
+import javax.annotation.PostConstruct;%0A%0Aimport org.springframework.beans.factory.annotation.Autowired;%0A
 import o
@@ -268,51 +268,629 @@
 g;%0A%0A
-@Controller%0Apublic class urteamController %7B
+import urteam.community.*;%0Aimport urteam.event.*;%0Aimport urteam.user.*;%0A%0A@Controller%0Apublic class urteamController %7B%0A%09%0A%09@Autowired%0A%09private UserRepository userRepo;%0A%09%0A%09@Autowired%0A%09private EventRepository eventRepo;%0A%09%0A%09@Autowired%0A%09private CommunityRepository communityRepo;%09%0A%09%0A%09@PostConstruct%0A%09public void init ()%7B%0A%09%09for (int i = 0; i %3C 10; i++) %7B%0A%09%09%09String name = String.valueOf(i);%0A%09%09%09String surname = String.valueOf(i);%0A%09%09%09userRepo.save(new User(name, surname));%0A%09%09%7D%0A%09%09%0A%09%09for (int i = 0; i %3C 10; i++) %7B%0A%09%09%09eventRepo.save(new Event());%0A%09%09%7D%0A%0A%09%09for (int i = 0; i %3C 10; i++) %7B%0A%09%09%09communityRepo.save(new Community());%0A%09%09%7D%0A%09%7D
 %0A%0A%09@
@@ -955,44 +955,8 @@
 %0A%0A%09%09
-model.addAttribute(%22name%22, %22World%22);
 %0A%0A%09%09

update urteamController