UnsupportedOperationException merge-saving many-to-many relation with hibernate and JPA

后端 未结 2 1555
广开言路
广开言路 2020-12-09 14:37

I\'ve set up a simple many-to-many relationship account : role with Hibernate but when I try to save an account in a unit test after it has had its role added I get an Unsup

2条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-09 14:57

    Hibernate's persistent variant of the Collection in question attempts to delegate to an abstract base class (PersistenceBag) that doesn't implement the add method.

提交回复
热议问题