Hi All,
I need your advice on how to ignore / merge duplicate records when persisting OneToMany unidirectional entity relationship tables that spanned over multiple entity manager factories. Below is the code snippet that I am referring to:
Desire output
----------------
John Doe – homePhone – 11111111
John Doe – workPhone – 22222222
However, below is the exception error encountered instead:
Yet this exception would not have occurred if all the persistent steps were carried out under the same Entity Manager Factory. However, the data that I am importing will have duplicates that will take place days, if not weeks later. The merging of Phone tables is working fine in general.
This issue appears to be a transactional Management one as opposed to a programming.
Thanks in advance,
Jack