jpa-JPA ManyToMany中间表除了2个外键字段,怎么添加其他的字段

2025-04-02 05:35:28
推荐回答(1个)
回答1:

设置
hibernate.hbm2ddl.auto=none

中间表自定义就好了, 想加什么字段就加什么字段.