【发布时间】:2014-03-04 15:44:55
【问题描述】:
我正在使用 Google App Engine 后端和端点解决方案。我创建了一个类,其中有几个我不想向 API 公开的属性,因此无法设置它。例如,主键或“活动”状态。如何隐藏它们?
公共类用户{
public static final String NAME="User";
@PrimaryKey
@Persistent
private String userKey; <------- want to hide this from user
@Persistent
private String email_address; <----- expose this only
@Persistent
private boolean active; <---- want to hide this from user
}
【问题讨论】:
标签: api google-app-engine properties hide endpoint