android - Greendao: nested entities and relationships -


so have scenario:

there entity post has nested author entity. many-to-one relationship multiplepost's can created single author.

public class post{ @id long id;  long authorid; @toone(joinproperty = "authorid") author author; }  public class author{ @id long id; //this useless greendao. have here because flows rest endpoint. long postid; } 

when response rest endpoint, post entity pulled along author entity. authorid in post entity not flows rest endpoint.

question

  • when persist post entity sqlite db, fields of post entity pushed. author entity not pushed. tried setting authorid on post entity without luck. missing?


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -