@@ -0,0 +1,1284 @@
+package com.rizki.mufrizal.belajar.oauth2.domain;%0A%0Aimport com.fasterxml.jackson.annotation.JsonIgnore;%0Aimport org.hibernate.annotations.GenericGenerator;%0A%0Aimport javax.persistence.*;%0Aimport java.io.Serializable;%0A%0A@Entity%0A@Table(name = %22tb_user_role%22,%0A        indexes = %7B%0A                @Index(columnList = %22role%22, name = %22role%22)%0A        %7D%0A)%0Apublic class UserRole implements Serializable %7B%0A%0A    @Id%0A    @GeneratedValue(generator = %22system-uuid%22)%0A    @GenericGenerator(name = %22system-uuid%22, strategy = %22uuid%22)%0A    @Column(name = %22idCustomerRole%22)%0A    private String idCustomerRole;%0A%0A    @Column(name = %22role%22, nullable = false, length = 10)%0A    private String role = %22ADMIN%22;%0A%0A    @JsonIgnore%0A    @ManyToOne(fetch = FetchType.LAZY, cascade = CascadeType.MERGE)%0A    @JoinColumn(name = %22username%22, nullable = false)%0A    private User user;%0A%0A    public String getIdCustomerRole() %7B%0A        return idCustomerRole;%0A    %7D%0A%0A    public void setIdCustomerRole(String idCustomerRole) %7B%0A        this.idCustomerRole = idCustomerRole;%0A    %7D%0A%0A    public String getRole() %7B%0A        return role;%0A    %7D%0A%0A    public void setRole(String role) %7B%0A        this.role = role;%0A    %7D%0A%0A    public User getUser() %7B%0A        return user;%0A    %7D%0A%0A    public void setUser(User user) %7B%0A        this.user = user;%0A    %7D%0A%7D%0A

Add Domain User Role