*
* {@sample.xml ../../../doc/jpa-connector.xml.sample jpa:merge}
*/
@Processor
public Object merge(Object object, @Optional Boolean flush) throws JpaException {
EntityManagerStrategy emStrategy;
if (flush != null) {
emStrategy = EntityManagerStrategyFactory.createEntityManagerCommand(getEntityManager(), ReceiveAction.MERGE, flush);
} else {
emStrategy = EntityManagerStrategyFactory.createEntityManagerCommand(getEntityManager(), ReceiveAction.MERGE, Boolean.FALSE);
}