0

The entities generate by GreenDAO must be something like this:

class A {    
    public List<B> bList1;
    public List<B> bList2;    
}

class B{
    ...
}

I know how it works with on list of a given type.

The problem is that I'm not sure if the generated code can know if a B object is of bList1 or bList2.

Natanael
  • 2,290
  • 6
  • 23
  • 35

1 Answers1

0

Yes it can: You can give a name to each relationship. In B class, you will have something like that:

class B {
  A aRelation1;
  A aRelation2;
}
Vincent Cantin
  • 16,192
  • 2
  • 35
  • 57