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();
}
//...
}