我想用一个中间表和该中间表中的额外字段创建多对多关系,就像这样: https://i.imgur.com/GFSMuK6.png
我刚刚完成了这个映射,可以工作吗?
@Entity
public class Personagem {
@Id
private Long Id;
@Index(type = IndexType.HASH)
@Unique
private String nome;
private ToMany<Classe> classes;