Skip to content

Commit

Permalink
Mark entity bindings as unsupported operation and deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
yihanzhen committed Mar 12, 2018
1 parent bc07a35 commit 8d06a01
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -282,9 +282,9 @@ public Builder<V> setBinding(String name, Key... value) {
* @param value a {@link FullEntity} object or a list of {@link FullEntity} objects that binds
* to a given name
*/
@Deprecated
public Builder<V> setBinding(String name, FullEntity<?>... value) {
namedBindings.put(name, toBinding(EntityValue.MARSHALLER, Arrays.asList(value)));
return this;
throw new DatastoreException(12, "Binding entities is not supported.", "UNIMPLEMENTED");
}

/**
Expand Down Expand Up @@ -378,9 +378,9 @@ public Builder<V> addBinding(Key... value) {
* @param value a {@link FullEntity} object or a list of {@link FullEntity} objects to be set as
* a new positional binding
*/
@Deprecated
public Builder<V> addBinding(FullEntity<?>... value) {
positionalBindings.add(toBinding(EntityValue.MARSHALLER, Arrays.asList(value)));
return this;
throw new DatastoreException(12, "Binding entities is not supported.", "UNIMPLEMENTED");
}

/**
Expand Down

0 comments on commit 8d06a01

Please sign in to comment.