Backendless Support
 
Works as Designed

How to prevent from an object's property from being sent and created at Backendless

I have object model in backendless app, the schema:

public class Message{

public String objectId;

private long created_at;

private String sender,receiver,text;

public boolean isSearched;

...

}i don't want to create the column "isSearched" in the database, how can i do that?

i tried to use transient with the implementation of Serializable before the public declaration:

public class Message implements Serializable{

public String objectId;

private long created_at;

private String sender,receiver,text;

transient public boolean isSearched;

}but still when i execute the save method like so:

Backendless.Persistence.save( new Message(...), new AsyncCallback<Message>())the column Searched is created at the DB.

Any suggestions?

Leave a Comment

Comments (2)

photo
1

I have the same issue here, i have a simple Message model, i want one of the properties to be excluded from the db (I dont want that property to become a column), should be easy enough right?

photo
1

Hi, Roei and Benny.

Sorry for the delay with answer.

Actually, there is no ability to prevent creating a column for some property of model in the Backendless.

But this functionality is already in our roadmap.

Regards, Ilya