persist(entity) {
    if (!this[PRIVATE.active]) {
      throw new Error("The transaction is no longer active")
    }

    return this[PRIVATE.runOperation]((operationsProvider) => {
      return operationsProvider.persist(entity)
    })
  }
/**
   * Creates the specified entity in the storage. If the entity does not have
   * its primary key set and the storage has the {@code autoIncrement} flag
   * set, the entity will have its primary key generated and set after this
   * operation completes.
   *
   * The created entity will be managed by this entity manager.
   *
   * @param {AbstractEntity} entity The entity to persist in the storage.
   * @return {Promise<AbstractEntity>} A promise that will resolve to the
   *         provided entity when the entity has been saved.
   */
Creates the specified entity in the storage. If the entity does not have
its primary key set and the storage has the  autoIncrement flag
set, the entity will have its primary key generated and set after this
operation completes.

The created entity will be managed by this entity manager.

@param {AbstractEntity} entity The entity to persist in the storage.
@return {Promise} A promise that will resolve to the
provided entity when the entity has been saved.
Creates the specified entity in the storage . If the entity does not have its primary key set and the storage has the autoIncrement flag set the entity will have its primary key generated and set after this operation completes . The created entity will be managed by this entity manager . @param { AbstractEntity } entity The entity to persist in the storage . @return { Promise } A promise that will resolve to the provided entity when the entity has been saved .
persist(entity) {
    if (!this[PRIVATE.active]) {
      throw new Error("The transaction is no longer active")
    }
    return this[PRIVATE.runOperation]((operationsProvider) => {
      return operationsProvider.persist(entity)
    })
  }
persist ( entity ) { if ( ! this [ PRIVATE . active ] ) { throw new Error ( "The transaction is no longer active" ) } return this [ PRIVATE . runOperation ] ( ( operationsProvider ) => { return operationsProvider . persist ( entity ) } ) }
Creates the specified entity in the storage.
Creates the specified entity in the storage .