Java 如何在hibernate中从集合中添加或删除哪些元素
我已经在hibernate中实现了PostCollectionUpdateEventListener,我想知道有没有办法找出集合中更改的数据Java 如何在hibernate中从集合中添加或删除哪些元素,java,hibernate,spring-data-jpa,hibernate-mapping,Java,Hibernate,Spring Data Jpa,Hibernate Mapping,我已经在hibernate中实现了PostCollectionUpdateEventListener,我想知道有没有办法找出集合中更改的数据 PersistentCollection collection = event.getCollection(); collection.getValue(); 这给了我想要的结果
PersistentCollection collection = event.getCollection();
collection.getValue();
这给了我想要的结果