Found shared references to a collection org.hibernate.HibernateException

前端 未结 12 1348
一整个雨季
一整个雨季 2020-11-27 15:48

I got this error message:

error: Found shared references to a collection: Person.relatedPersons

When I tried to execute ad

12条回答
  •  我在风中等你
    2020-11-27 16:22

    In a one to many and many to one relationship this error will occur. If you attempt to devote same instance from many to one entity to more than one instance from one to many entity.

    For example, each person can have many books but each of these books can be owned by only one person if you consider more than one owner for a book this issue is raised.

提交回复
热议问题