// Path: code/exercise_4/exercise/src/main/java/com/frankmoley/talks/spring/intro/service/UserService.java
// @Service
// public class UserService {
// 
//     private final PersonRepository personRepository;
// 
//     @Autowired
//     public UserService(PersonRepository personRepository){
//         super();
//         this.personRepository = personRepository;
//     }
// 
//     @Loggable
//     public User getUser(String emailAddress){
//         User user = new User();
//         user.setUsername("BigLebowski");
//         user.setPersonId(UUID.randomUUID().toString());
//         return user;
//     }
// }


import com.frankmoley.talks.spring.intro.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
package com.frankmoley.talks.spring.intro.web.app;


@Controller
@RequestMapping(value="/")
public class AppController {

// Path: code/exercise_4/exercise/src/main/java/com/frankmoley/talks/spring/intro/service/UserService.java
// @Service
// public class UserService {
// 
//     private final PersonRepository personRepository;
// 
//     @Autowired
//     public UserService(PersonRepository personRepository){
//         super();
//         this.personRepository = personRepository;
//     }
// 
//     @Loggable
//     public User getUser(String emailAddress){
//         User user = new User();
//         user.setUsername("BigLebowski");
//         user.setPersonId(UUID.randomUUID().toString());
//         return user;
//     }
// }


// Path: code/exercise_4/solution/src/main/java/com/frankmoley/talks/spring/intro/web/app/AppController.java
import com.frankmoley.talks.spring.intro.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

package com.frankmoley.talks.spring.intro.web.app;


@Controller
@RequestMapping(value="/")
public class AppController {

    private final UserService userService;