I have a Parent/Child relationship with the following mapping for the child.
@Cascade({org.hibernate.annotations.CascadeType.SAVE_UPDATE, org.hibernate.annotations.CascadeType.DELETE_ORPHAN})
@EditableProperty(collectionType = AutoComplete.class)
@Fetch(value = FetchMode.SELECT)
@OneToMany(mappedBy = "autoCompleteSet", fetch = FetchType.EAGER, cascade = {CascadeType.PERSIST, CascadeType.MERGE})
@Sort(type = SortType.NATURAL)
private SortedSet<AutoComplete> mappings = new TreeSet<AutoComplete>();
When loading data I see SAVE_UPDATE events being called which do not result in any sql on the database, but, why are they being triggered in the first place? It's clear they are the result of the SAVE_UPDATE cascade but I have called neither save or update?
Can anyone explain?
|