Created
March 11, 2016 07:10
-
-
Save zaki50/3526d0f6681b9d0bcb79 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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