Skip to content

Instantly share code, notes, and snippets.

@rickyngk
Created January 15, 2016 17:40
Show Gist options
  • Save rickyngk/14d166c4e183127baa73 to your computer and use it in GitHub Desktop.
Save rickyngk/14d166c4e183127baa73 to your computer and use it in GitHub Desktop.
EntityX exmaples
public class Person extends EntityX {
public Person() {super();}
@BindField("username") String name;
@BindField("age") int age;
@BindField("address") Address userAddress;
@BindField("wishListItems") ArrayList<int> wishList;
@BindField("phones") ArrayList<Phone> phones;
}
public class Address extends EntityX {
public Address() {super();}
@BindField("street") String street;
@BindField("ward") String ward;
}
public class Phone extends EntityX {
public Phone() {super();}
@BindField("type") String type;
@BindField("number") String number;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment