Hibernate: Removing item from a List does not persist

前端 未结 4 1464
旧时难觅i
旧时难觅i 2020-12-06 09:59

I am having trouble when removing an item from a list. The list is defined in a superclass, but the Hibernate annotations are applied to property accessors in a subclass. Th

4条回答
  •  南笙
    南笙 (楼主)
    2020-12-06 10:51

    You have marked the 'content' field as transient in the super class. I would at least suspect that this is causing problems. With the mapping in the subclass, you basically have now two contradicting mappings for the same attribute.

提交回复
热议问题