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
Post a Comment