'How is @ElementCollection stored?
Here is part of my User Entity, as you can see, it has Enum Roles
@Entity
@NoArgsConstructor
@AllArgsConstructor
@Getter
@Setter
@Table(name = "users")
public class User {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private long id;
private String name;
private String email;
private String password;
@ElementCollection(fetch = FetchType.EAGER)
private List<Role> roles;
}
The table role is missing, I only have one linking table user_roles. How is the data stored if I can't see it? How can I manually change role in PostgreSQL if I can't edit linking table?

Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|

