Skip to content

Instantly share code, notes, and snippets.

@Bambina-zz
Last active May 10, 2017 00:27
Show Gist options
  • Save Bambina-zz/25dc52f243bd4c50b63550c480e69d52 to your computer and use it in GitHub Desktop.
Save Bambina-zz/25dc52f243bd4c50b63550c480e69d52 to your computer and use it in GitHub Desktop.
public class User extends RealmObject {
@PrimaryKey
public long id;
public String name;
public RealmList<Bread> breads;
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public RealmList<Bread> getBreads() {
return breads;
}
public void setBreads(RealmList<Bread> breads) {
this.breads = breads;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment