Created
January 15, 2016 17:40
-
-
Save rickyngk/14d166c4e183127baa73 to your computer and use it in GitHub Desktop.
EntityX exmaples
This file contains 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
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