为了我的游戏!应用程序我有一个 User.class
@Entity
public class User extends Model {
@Id
public String email;
public String name;
public String password;
public User(String email, String name, String password) {
this.email = email;
this.name = name;
this.password = password;
}
...
}
每次我在 /user/{id}.json 上询问用户对象时,我都想防止发送密码字符串。怎么做?这是正常的用例还是有其他方法来处理它?