code: @Transactional
      public E merge(E entity) {
          System.out.println("merge: " + entity.entityClassName() + ": " +entity + ": " + entity.getId());
          return entityManager.merge(entity);
      }
docs: /*
  Merge the state of the given entity into the current persistence context.