package com.rizki.mufrizal.spring.oauth2.custom.domain;

/**
 *
 * @Author Rizki Mufrizal <mufrizalrizki@gmail.com>
 * @Web <https://RizkiMufrizal.github.io>
 * @Since Feb 1, 2017
 * @Time 10:31:17 PM
 * @Encoding UTF-8
 * @Project Spring-OAuth2-Custom
 * @Package com.rizki.mufrizal.spring.oauth2.custom.domain
 *
 */
public class User {

}

@@ -54,289 +54,2130 @@
 n;%0A%0A
-/**%0A *%0A * @Author Rizki Mufrizal %3Cmufrizalrizki@gmail.com%3E%0A * @Web %3Chttps://RizkiMufrizal.github.io%3E%0A * @Since Feb 1, 2017%0A * @Time 10:31:17 PM%0A * @Encoding UTF-8%0A * @Project Spring-OAuth2-Custom%0A * @Package com.rizki.mufrizal.spring.oauth2.custom.domain%0A *%0A */%0Apublic class User %7B%0A
+import java.io.Serializable;%0Aimport java.util.HashSet;%0Aimport java.util.Set;%0Aimport javax.persistence.CascadeType;%0Aimport javax.persistence.Column;%0Aimport javax.persistence.Entity;%0Aimport javax.persistence.FetchType;%0Aimport javax.persistence.Id;%0Aimport javax.persistence.OneToMany;%0Aimport javax.persistence.Table;%0A%0A/**%0A *%0A * @Author Rizki Mufrizal %3Cmufrizalrizki@gmail.com%3E%0A * @Web %3Chttps://RizkiMufrizal.github.io%3E%0A * @Since Feb 1, 2017%0A * @Time 10:31:17 PM%0A * @Encoding UTF-8%0A * @Project Spring-OAuth2-Custom%0A * @Package com.rizki.mufrizal.spring.oauth2.custom.domain%0A *%0A */%0A@Entity%0A@Table(name = %22tb_user%22)%0Apublic class User implements Serializable %7B%0A%0A    @Id%0A    @Column(name = %22username%22, length = 50, nullable = false)%0A    private String username;%0A%0A    @Column(name = %22password%22, length = 100, nullable = false)%0A    private String password;%0A%0A    @Column(name = %22is_active%22, nullable = false)%0A    private Boolean isActive;%0A%0A    @OneToMany(cascade = %7BCascadeType.ALL%7D, fetch = FetchType.LAZY, mappedBy = %22user%22)%0A    private Set%3CUserRole%3E userRoles = new HashSet%3C%3E();%0A%0A    /**%0A     * @return the username%0A     */%0A    public String getUsername() %7B%0A        return username;%0A    %7D%0A%0A    /**%0A     * @param username the username to set%0A     */%0A    public void setUsername(String username) %7B%0A        this.username = username;%0A    %7D%0A%0A    /**%0A     * @return the password%0A     */%0A    public String getPassword() %7B%0A        return password;%0A    %7D%0A%0A    /**%0A     * @param password the password to set%0A     */%0A    public void setPassword(String password) %7B%0A        this.password = password;%0A    %7D%0A%0A    /**%0A     * @return the isActive%0A     */%0A    public Boolean getIsActive() %7B%0A        return isActive;%0A    %7D%0A%0A    /**%0A     * @param isActive the isActive to set%0A     */%0A    public void setIsActive(Boolean isActive) %7B%0A        this.isActive = isActive;%0A    %7D%0A%0A    /**%0A     * @return the userRoles%0A     */%0A    public Set%3CUserRole%3E getUserRoles() %7B%0A        return userRoles;%0A    %7D%0A%0A    /**%0A     * @param userRoles the userRoles to set%0A     */%0A    public void setUserRoles(Set%3CUserRole%3E userRoles) %7B%0A        this.userRoles = userRoles;%0A    %7D
 %0A%7D%0A

add domain user