2014-03-04 2 views
0

Google App Engine 백엔드 및 종단점 솔루션을 사용하고 있습니다. API에 노출하지 않으려는 여러 속성이있는 클래스를 만들었으므로 사용할 수 없습니다. 예 : 기본 키 또는 "활성"상태. 어떻게 숨길 수 있습니까?종점 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 

}

답변

0
@Persistent 
@ApiResourceProperty(ignored = AnnotationBoolean.FALSE) 
private String userKey;