Skip to content

Instantly share code, notes, and snippets.

@zaki50
Created March 11, 2016 07:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zaki50/3526d0f6681b9d0bcb79 to your computer and use it in GitHub Desktop.
Save zaki50/3526d0f6681b9d0bcb79 to your computer and use it in GitHub Desktop.
package com.example.realm_template.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.realm.RealmObject;
import io.realm.annotations.PrimaryKey;
public class User extends RealmObject {
@PrimaryKey
@JsonProperty("user_name")
private String name;
private int age;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int getAge() {
return age;
}
public void setAge(int age) {
this.age = age;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment