Forgot to mention :-
in case of calling persist(), hibernate doesn't invoke callback method with
copy object but the actual object passed to persist(); so for persist() it
works correctly.
On Tue, Aug 19, 2014 at 4:20 PM, deepak raut
wrote:
> I have an entity class like -
>
> pub
I have an entity class like -
public class Item {
@Id
//mapping
private Long id;
@ElementCollection
//mapping
private Set wrapperSet;
@Transient
private Map itemPredecessor;
..
..
@PrePersist
@PreUpdate
private void populateSet() {
wrapperSet.clear();
for(Map