package <%=packageName%>.web.rest.dto;

import java.util.List;

public class UserDTO {

    private String login;
    
    private String password;
    
    private String firstName;
    
    private String lastName;
    
    private String email;
    
    private String langKey;

    private List<String> roles;

    public UserDTO() {
    }

    public UserDTO(String login, String password, String firstName, String lastName, String email, String langKey,
                   List<String> roles) {
        this.login = login;
        this.password = password;
        this.firstName = firstName;
        this.lastName = lastName;
        this.email = email;
        this.langKey = langKey;
        this.roles = roles;
    }

    public String getPassword() {
        return password;
    }

    public String getLogin() {
        return login;
    }

    public String getFirstName() {
        return firstName;
    }

    public String getLastName() {
        return lastName;
    }

    public String getEmail() {
        return email;
    }

    public String getLangKey() {
        return langKey;
    }

    public List<String> getRoles() {
        return roles;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("UserDTO{");
        sb.append("login='").append(login).append('\'');
        if(password != null) {
            sb.append(", password='").append(password.length()).append('\'');
        }
        sb.append(", firstName='").append(firstName).append('\'');
        sb.append(", lastName='").append(lastName).append('\'');
        sb.append(", email='").append(email).append('\'');
        sb.append(", langKey='").append(langKey).append('\'');
        sb.append(", roles=").append(roles);
        sb.append('}');
        return sb.toString();
    }
}

@@ -107,21 +107,17 @@
  login;%0A
-    
 %0A
+
     priv
@@ -137,21 +137,17 @@
 ssword;%0A
-    
 %0A
+
     priv
@@ -160,37 +160,33 @@
 ring firstName;%0A
-    
 %0A
+
     private Stri
@@ -198,21 +198,17 @@
 stName;%0A
-    
 %0A
+
     priv
@@ -225,20 +225,16 @@
  email;%0A
-    
 %0A    pri

Fix indentation and remove trailing whitespaces