When trying to merge an entity with JPA (eclipselink implementation) it gets duplicated for every action on the containing entity. Why?
To make it more concrete:
I've got a situation
with in it parcels
. If I'm adding one parcel
everything is ok. If I add two parcels
without leaving the view (with viewScoped backing bean) I'm getting 3 parcels
.
How is that possible?
I'm using the merge
method on situation
to save the parcels
added.
Nothing else is happening in the backingBean other than mergin.