Eclipselink 2.4 + JPA + ManyToMany with additional column
问题 I'm developing a student manager application in Java with JPA entities provided by Eclipselink. I'm trying to implement a many-to-many relationship between two entities for a while, but I ran into some weird exceptions. My implementations are based on: Java persistence Wiki page of ManyToMany relationship and this StackOverflow post. Here is my Homework.java file's relevant parts: @Entity @Table(name = "db_homework") public class Homework { @Id @GeneratedValue(strategy = IDENTITY) private