// Path: src/main/java/org/aming/web/qq/utils/IdGen.java
// public class IdGen {
// 
//     private static final SecureRandom random = new SecureRandom();
// 
//     public static String uuid(){
//         return UUID.randomUUID().toString().replace("-","");
//     }
// }


import org.aming.web.qq.utils.IdGen;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.springframework.security.core.userdetails.UserDetails;
import java.util.Collection;

    @Override
    public String getPassword() {
        return password;
    }

    public User setPassword(String password) {
        this.password = password;
        return this;
    }

    public String getEmail() {
        return email;
    }

    public User setEmail(String email) {
        this.email = email;
        return this;
    }

    public User(String id, String username, String password, String email) {
        super();
        this.id = id;
        this.username = username;
        this.password = password;
        this.email = email;
    }

    public User(String username, String password) {
        super();
// Path: src/main/java/org/aming/web/qq/utils/IdGen.java
// public class IdGen {
// 
//     private static final SecureRandom random = new SecureRandom();
// 
//     public static String uuid(){
//         return UUID.randomUUID().toString().replace("-","");
//     }
// }


// Path: src/main/java/org/aming/web/qq/domain/User.java
import org.aming.web.qq.utils.IdGen;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.springframework.security.core.userdetails.UserDetails;
import java.util.Collection;


    @Override
    public String getPassword() {
        return password;
    }

    public User setPassword(String password) {
        this.password = password;
        return this;
    }

    public String getEmail() {
        return email;
    }

    public User setEmail(String email) {
        this.email = email;
        return this;
    }

    public User(String id, String username, String password, String email) {
        super();
        this.id = id;
        this.username = username;
        this.password = password;
        this.email = email;
    }

    public User(String username, String password) {
        super();
        this.id = IdGen.uuid();