Skip to content

JSON Examples

xcesco edited this page Mar 23, 2015 · 2 revisions

Use @BindAllFields

For java class

@BindAllFields
public class Employee {
  public Date birthday;	
  public String name;
  public String surname;	
  public int[] tickets;
}

An example of JSON output is

{
    "birthday": "1965-07-11T23:32:02.811Z",
    "name": "Tonj",
    "surname": "Manero",
    "tickets": [
        1,
        2,
        4
    ]
}

Explicit bind

For java class

public class Employee {

	@Bind
	public Date birthday;
	
	@Bind
	public String name;

	@Bind
	public String surname;
}

An example of JSON output is

{
    "birthday": "1965-07-11T23:39:59.856Z",
    "name": "Tonj",
    "surname": "Manero"
}

Table of Contents

Query definition

Features

Relations

Multithread supports

Modularization

Annotations for data convertion

Annotations for SQLite ORM

Annotations for shared preferences

Clone this wiki locally