我有一个many2many关系的问题。我使用MySQL和EclipseLink JPA 2。我已经阅读了很多,但无法弄清楚为什么 Join Table 永远不会更新!我在项目中有更多Many2many Relation,它们运行良好,但无法解决这个问题。任何人都可以告诉我错误是什么。???
Expediente.java
@JoinTable(name = "expediente_tiene_partepolicial", joinColumns = {
@JoinColumn(name = "PK_IdDelicuente", referencedColumnName = "PK_IdDelicuente")}, inverseJoinColumns = { @JoinColumn(name = "PK_CodParte", referencedColumnName = "PK_CodParte")})
@ManyToMany
private List<PartePolicial> partePolicialList;
PartePolcial.java
@ManyToMany(mappedBy = "partePolicialList")
private List<Expediente> expedienteList;