I have one to many relationship in hibernate tables.and Line table i kept as Collections Set that is
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER)
@JoinColumn(name = "JOBCARD_ID")
private Set<ItemDetails> itemDetailsList;
When i update all header and line records ,some records has been deleted becasuse set removed duplicate records before update.
My problem is how to avoid this deletion when updating records. please do the needful.