Skip to content

Transaction.Response - Both generatedKeys() and getGeneratedKeys() are marked as deprecated #1351

@sai-pullabhotla

Description

@sai-pullabhotla

In the Datastore API 0.5.0, in Transaction.Response interface - Both generatedKeys() and getGeneratedKeys() are marked as deprecated. What is the alternative? I wonder if the new method getGeneratedKeys was unintentionally marked as deprecated?

public interface Transaction extends DatastoreBatchWriter, DatastoreReaderWriter {

  interface Response {
    /**
     * Returns a list of keys generated by a transaction.
     */
    @Deprecated
    List<Key> generatedKeys();

    /**
     * Returns a list of keys generated by a transaction.
     */
    @Deprecated
    List<Key> getGeneratedKeys();
  }
//...
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions