https://glassfish.dev.java.net/issues/show_bug.cgi?id=2621
Issue number: 2621
Obtained from: TopLink
Submitted by: Tom Ware
Reviewed by: Gordon Yorke
Fixes for GF 2621.
Added change to RepeatableWriteUnitOfWork to cause new objects to be
cached so we will find them when a second merge occurs with the same key.
Fixed UOWImpl to correct calculate whether the PK contains null when
merging.
Tested with QuickLook and entity-persistence-tests
testDoubleMerge() added to EntityManagerJUnitTestSuite