I was reading this great tutorial https://www.callicoder.com/spring-boot-spring-security-jwt-mysql-react-app-part-1/
I have an entity "User" which I don't need a table for in the db, the User info will be retrieved from an API. The user has a relationship with an entity that has a db table "Role".
How can I use spring boot hibernate to build such a case:
public Class User{
private Long id;
.
.
.
@ManyToMany
Set<Role> roles;
}