// Path: server/user-management/src/main/java/de/budgetfreak/usermanagement/UserManagementProperties.java
// @ConfigurationProperties("usermanagement")
// public class UserManagementProperties {
// 
//     private String testProperty;
// 
//     public String getTestProperty() {
//         return testProperty;
//     }
// 
//     public UserManagementProperties setTestProperty(String testProperty) {
//         this.testProperty = testProperty;
//         return this;
//     }
// }
// 
// Path: server/user-management/src/main/java/de/budgetfreak/usermanagement/domain/User.java
// @Entity(name = "BF_USER")
// public class User {
// 
//     @Id
//     @GeneratedValue(strategy = GenerationType.IDENTITY)
//     @Column(name = "ID")
//     private Long id;
// 
//     @Column(name = "NAME")
//     private String name;
// 
//     @Column(name = "CURRENCY")
//     private String currency;
// 
//     public User() {
//     }
// 
//     public User(String name, String currency) {
//         this.name = name;
//         this.currency = currency;
//     }
// 
//     public Long getId() {
//         return id;
//     }
// 
//     public User setId(Long id) {
//         this.id = id;
//         return this;
//     }
// 
//     public String getName() {
//         return name;
//     }
// 
//     public User setName(String name) {
//         this.name = name;
//         return this;
//     }
// 
//     public String getCurrency() {
//         return currency;
//     }
// 
//     public User setCurrency(String currency) {
//         this.currency = currency;
//         return this;
//     }
// }
// 
// Path: server/user-management/src/main/java/de/budgetfreak/usermanagement/domain/UserRepository.java
// @Repository
// public interface UserRepository extends JpaRepository<User, Long> {
// 
//     User findByName(String name);
// }


import de.budgetfreak.usermanagement.UserManagementProperties;
import de.budgetfreak.usermanagement.domain.User;
import de.budgetfreak.usermanagement.domain.UserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.data.domain.Example;
import org.springframework.stereotype.Service;
import java.util.List;
package de.budgetfreak.usermanagement.service;



/**
 * Service for managing users.
 */
@Service
@EnableConfigurationProperties(UserManagementProperties.class)
public class UserService {

    private UserRepository userRepository;
    private UserManagementProperties userManagementProperties;

    @Autowired
    public UserService(UserRepository userRepository, UserManagementProperties userManagementProperties) {
        this.userRepository = userRepository;
        this.userManagementProperties = userManagementProperties;
    }

    /**
     * List all users in no given order.
     */
// Path: server/user-management/src/main/java/de/budgetfreak/usermanagement/UserManagementProperties.java
// @ConfigurationProperties("usermanagement")
// public class UserManagementProperties {
// 
//     private String testProperty;
// 
//     public String getTestProperty() {
//         return testProperty;
//     }
// 
//     public UserManagementProperties setTestProperty(String testProperty) {
//         this.testProperty = testProperty;
//         return this;
//     }
// }
// 
// Path: server/user-management/src/main/java/de/budgetfreak/usermanagement/domain/User.java
// @Entity(name = "BF_USER")
// public class User {
// 
//     @Id
//     @GeneratedValue(strategy = GenerationType.IDENTITY)
//     @Column(name = "ID")
//     private Long id;
// 
//     @Column(name = "NAME")
//     private String name;
// 
//     @Column(name = "CURRENCY")
//     private String currency;
// 
//     public User() {
//     }
// 
//     public User(String name, String currency) {
//         this.name = name;
//         this.currency = currency;
//     }
// 
//     public Long getId() {
//         return id;
//     }
// 
//     public User setId(Long id) {
//         this.id = id;
//         return this;
//     }
// 
//     public String getName() {
//         return name;
//     }
// 
//     public User setName(String name) {
//         this.name = name;
//         return this;
//     }
// 
//     public String getCurrency() {
//         return currency;
//     }
// 
//     public User setCurrency(String currency) {
//         this.currency = currency;
//         return this;
//     }
// }
// 
// Path: server/user-management/src/main/java/de/budgetfreak/usermanagement/domain/UserRepository.java
// @Repository
// public interface UserRepository extends JpaRepository<User, Long> {
// 
//     User findByName(String name);
// }


// Path: server/user-management/src/main/java/de/budgetfreak/usermanagement/service/UserService.java
import de.budgetfreak.usermanagement.UserManagementProperties;
import de.budgetfreak.usermanagement.domain.User;
import de.budgetfreak.usermanagement.domain.UserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.data.domain.Example;
import org.springframework.stereotype.Service;
import java.util.List;

package de.budgetfreak.usermanagement.service;



/**
 * Service for managing users.
 */
@Service
@EnableConfigurationProperties(UserManagementProperties.class)
public class UserService {

    private UserRepository userRepository;
    private UserManagementProperties userManagementProperties;

    @Autowired
    public UserService(UserRepository userRepository, UserManagementProperties userManagementProperties) {
        this.userRepository = userRepository;
        this.userManagementProperties = userManagementProperties;
    }

    /**
     * List all users in no given order.
     */
    public List<User> list() {