gpt4 book ai didi

java - 如何防止在 Backendless 发送和创建对象的属性

转载 作者:太空宇宙 更新时间:2023-11-04 11:58:04 24 4
gpt4 key购买 nike

我在无后端应用程序中有对象模型,架构:

public class Message{

public String objectId;
private long created_at;
private String sender,receiver,text;
public boolean isSearched;
...
}

我不想在数据库中创建列“isSearched”,我该怎么做?

我尝试在公共(public)声明之前将transientSerialized的实现一起使用:

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 列是在数据库中创建的。

有什么建议吗?

最佳答案

在控制台中禁用动态用户定义enter image description here

关于java - 如何防止在 Backendless 发送和创建对象的属性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41184949/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com