code: public void assignManagedTypes(Map<Class<?>, EntityType<?>> managedTypes)
      {
          if (this.entityTypes == null)
          {
              this.entityTypes = managedTypes;
          }
          else
          {
              this.entityTypes.putAll(managedTypes);
          }
      }
docs: Assign to managedTypes.
  
  @param managedTypes
  the managedTypes to set