Guest User

Untitled

a guest
Jan 17th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. class Address {
  2. public String street;
  3. public String state;
  4. public String city;
  5.  
  6. @ColumnInfo(name = "post_code")
  7. public int postCode;
  8.  
  9. @Embedded(prefix = "home_")
  10. public Location homeLocation;
  11.  
  12. @Embedded(prefix = "office_")
  13. public Location officeLocation;
  14. }
  15.  
  16. class Location{
  17. public long lat;
  18. public long lng;
  19. }
  20.  
  21. @Entity
  22. class User {
  23. @PrimaryKey
  24. public int id;
  25.  
  26. public String firstName;
  27.  
  28. @Embedded(prefix = "addr_")
  29. public Address address;
  30. }
Add Comment
Please, Sign In to add comment