我在无后端应用程序中有对象模型,架构:
public class Message{
public String objectId;
private long created_at;
private String sender,receiver,text;
public boolean isSearched;
...
}
我不想在数据库中创建列“isSearched”
,我该怎么做?
我尝试在公共(public)声明之前将transient
与Serialized
的实现一起使用:
public class Message implements Serializable{
public String objectId;
private long created_at;
private String sender,receiver,text;
transient public boolean isSearched;
}
但当我像这样执行保存方法时:
Backendless.Persistence.save( new Message(...), new AsyncCallback<Message>())
Searched
列是在数据库中创建的。
有什么建议吗?
最佳答案
关于java - 如何防止在 Backendless 发送和创建对象的属性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41184949/