Appengine Sees User As Additional Parameter
I am using OAuth with my app-engine server. It's rather simple to do, simple add User as one of the parameters. But when I do I get the compile error Multiple entity parameters. t
Solution 1:
I have the feeling your User is not of type import com.google.appengine.api.users.User.
The documentation states that "there can only be a single entity parameter per method" (see https://cloud.google.com/appengine/docs/java/endpoints/parameter-and-return-types).
However "Any type except a parameter or injected type is considered an entity type" and com.google.appengine.api.users.User is of type "injected": so you should not have any problem normally, unless your User is not of this type.
Personaly I have methods like
public Customer insert(finalUseruser, Customer customer, ...
which work perfectly well
Post a Comment for "Appengine Sees User As Additional Parameter"