subject.addStudent(student);
// must do both 2.1 and 2.2 because ManyToMany// now persist the owning side}
现在,当我在没有最后一行的情况下运行代码时,测试工作正常,没有任何错误。我从数据库中检索学
我正在使用hibernate开发一个java应用程序。我有两个实体Acl和AclGroup,这两个实体都有多到多个关系,有一个join表。但是,当我保存一个AclGroup对象时,hibernate不会在join表中插入任何记录,而只是插入到AclGroup表中。以下是我的课程结构:public class Acl impl