Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Address {
- public String street;
- public String state;
- public String city;
- @ColumnInfo(name = "post_code")
- public int postCode;
- @Embedded(prefix = "home_")
- public Location homeLocation;
- @Embedded(prefix = "office_")
- public Location officeLocation;
- }
- class Location{
- public long lat;
- public long lng;
- }
- @Entity
- class User {
- @PrimaryKey
- public int id;
- public String firstName;
- @Embedded(prefix = "addr_")
- public Address address;
- }
Add Comment
Please, Sign In to add comment