Software Development, Spring Boot, Jwt, Java, Web Development.
@JoinTable( name = "user_roles", joinColumns = @JoinColumn(name = "user_id"), inverseJoinColumns = @JoinColumn(name = "role_id")) private Set<Role> roles = new HashSet<>(); } // ERole.java public enum ERole { ROLE_USER, ROLE_ADMIN, ROLE_SUPER_ADMIN } // Role.java @Data @AllArgsConstructor