且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用休眠管理多对多关系

更新时间:2022-02-12 09:42:34

只需要将@ManyToMany放在一个位置即可.

Just need to put @ManyToMany in one place only.

请在角色实体中删除@ManyToMany.您可以检查下面的链接,以便使用oracle数据库处理@ManyToMany.我希望这会有所帮助:

Please remove @ManyToMany in Role entity. You can check the link below in order to deal @ManyToMany using oracle database. I hope this is helpful:

https://gerardnico.com/jpa/many-to-many#oracle_database