Page 1 of 3112345...102030...Last »

Feature 100: Creating relationships between data objects and geo points

In my post yesterday I described how to declare a relationship in a data table schema with a geo point. Now that you know how to create a table column which contains one or more geo points, I am going to show how to populate it with data.

If you follow the post from yesterday and add a table column of the GEOPOINT  type, your data objects in Backendless console will appear as shown below. Notice the location column:
Continue reading

Feature 99: Declaring a relationship between a data table and geo point(s)

Data objects in Backendless may have related properties not only with other tables, but also with Geo Points. These relationships may be declared programmatically or using Backendless Console. In this post I review the process of declaring a Data-to-Geo relationship in a data table schema.

Once a relationship is declared, you can do the following:

  • Link/unlink/manage data objects with related geo points using console.
  • Use Backendless code generator to create client-side code which reflects the structure of the tables. Continue reading

Feature 98: Loading data objects from server with an SQL query

Previously I have reviewed multiple techniques for loading data objects from the persistent server-side storage. There is a list of all articles categorized by topic. In this post I am going to review the API for loading data objects using an SQL query. I already wrote once about SQL queries in Backendless and that post described how to test queries using console. I recommend reading that post before reviewing the samples below.

Consider the following data tables:

There are 2 Person objects:
Continue reading

Feature 96: Declare minimum required properties in your data classes

In my previous post where I showed how to update data objects in the persistent storage, my class for the data object looked like this:

Notice the class does not include any fields/properties for objectId , created or updated fields. Nevertheless, the call to save the updated object knew that it is already stored in Backendless. This is possible as a result of a feature that lets you declare any field or property your app might need. Also, notice the class neither implements any special interfaces nor extends any base Backendless classes – a pure data object class.

Page 1 of 3112345...102030...Last »