greendao - Green Dao bi-directional One To One mapping -


i'm using greendao in android app , create bi-directional one-to-one mapping.

however don't see how can achieved unless have 2 foreign key properties on both entities, not ideal.

ideal if 1 entity owns relationship.

did come across problem?

for decided workaround create bi-directional 1 many mapping , create custom method on 2nd entity returns entity of other type. not ideal, works!


Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -