所以我想知道是否可以选择表的每一行,包括对其他表(对象)的其他引用,例如:
class A{
@DatabaseField
int somethingA;
@DatabaseField
String someStringA;
@DatabaseField(canBeNull = false, foreign=true, foreignAutoRefresh=true)
>> B instanceB;
@ForeignCollectionField
>> Collection< C > lotsOfCs;
}
class B{
@DatabaseField
int somethingb;
@DatabaseField
String someStringB;
}
Classe C{
@DatabaseField
int somethingC;
@DatabaseField
String someStringC;
@DatabaseField( foreign=true, foreignAutoRefresh=true)
>> A instanceA;
}
那么如何选择表/A类的所有行,包括B和C对象,我需要手动获取B和C吗?
问候,